Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.94ms] Passed 4 tests
This is a short check of server-side resources used by Simple Resources Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 35.26 ▼2.01 |
Dashboard /wp-admin | 3.35 ▲0.01 | 43.38 ▼14.66 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 53.28 ▲6.60 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 89.85 ▼15.53 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 33.86 ▲0.45 |
Add New /wp-admin/post-new.php?post_type=resource | 3.41 | 50.62 |
Resources /wp-admin/edit.php?post_type=resource | 3.31 | 35.91 |
Types /wp-admin/edit-tags.php?taxonomy=restype&post_type=resource | 3.27 | 31.03 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Resources Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲90 | 13.59 ▼0.80 | 1.67 ▼0.07 | 39.68 ▼4.95 |
Dashboard /wp-admin | 2,228 ▲37 | 5.80 ▲0.72 | 97.98 ▼3.76 | 40.48 ▼3.46 |
Posts /wp-admin/edit.php | 2,120 ▲28 | 2.04 ▲0.06 | 39.65 ▼1.36 | 34.80 ▼0.59 |
Add New Post /wp-admin/post-new.php | 1,570 ▲28 | 18.36 ▲0.09 | 576.10 ▼44.90 | 48.06 ▼3.74 |
Media Library /wp-admin/upload.php | 1,422 ▲31 | 4.20 ▼0.00 | 95.81 ▼5.25 | 41.01 ▼0.12 |
Add New /wp-admin/post-new.php?post_type=resource | 2,659 | 7.85 | 175.12 | 67.60 |
Resources /wp-admin/edit.php?post_type=resource | 1,115 | 1.93 | 30.94 | 30.23 |
Types /wp-admin/edit-tags.php?taxonomy=restype&post_type=resource | 1,296 | 2.13 | 25.73 | 28.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/resources/Resources.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== resources ===
)
resources/Resources.php 92% from 13 tests
The main PHP file in "Simple Resources Plugin" ver. 0.6 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("resources.php" instead of "Resources.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin118 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 26 | 16 | 109 |
CSS | 1 | 2 | 0 | 9 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin