Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.32ms] Passed 4 tests
An overview of server-side resources used by Inherit Theme Mods
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.11 ▼1.91 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.80 ▲2.39 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 44.27 ▼2.76 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 83.53 ▼13.37 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.98 ▲0.76 |
Inherit Theme Mods /wp-admin/options-general.php?page=inherit-theme-mods | 3.10 | 25.28 |
Server storage [IO: ▲1.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 56 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Inherit Theme Mods: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.30 ▼1.32 | 1.77 ▲0.10 | 44.09 ▲6.48 |
Dashboard /wp-admin | 2,210 ▲19 | 4.82 ▼0.05 | 110.92 ▲4.44 | 41.95 ▲0.85 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.07 | 32.82 ▼2.15 | 33.72 ▲2.21 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.03 ▼0.13 | 657.34 ▼17.57 | 51.24 ▼5.73 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.17 ▼0.05 | 92.14 ▼14.87 | 43.95 ▼2.13 |
Inherit Theme Mods /wp-admin/options-general.php?page=inherit-theme-mods | 923 | 2.08 | 27.79 | 33.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=inherit-theme-mods
- > Deprecated in wp-content/plugins/inherit-theme-mods/functions.php+26
implode(): Passing glue string after array is deprecated. Swap the parameters
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/inherit-theme-mods/inherit-theme-mods-table.php on line 7
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/inherit-theme-mods/inherit-theme-mods-table.php on line 7
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/inherit-theme-mods/inherit-theme-mods-table.php on line 7
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/inherit-theme-mods/inherit-theme-mods-table.php on line 7
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/inherit-theme-mods/inherit-theme-mods-table.php on line 7
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/inherit-theme-mods/inherit-theme-mods-table.php on line 7
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: inspector, property, inherit, customizer, settings...
inherit-theme-mods/functions.php 92% from 13 tests
The main PHP file in "Inherit Theme Mods" ver. 2.1.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("inherit-theme-mods.php" instead of "functions.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected7,187 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 17 | 17 | 2,293 |
Sass | 14 | 34 | 34 | 1,656 |
LESS | 14 | 34 | 44 | 1,646 |
SVG | 1 | 0 | 0 | 685 |
PHP | 5 | 76 | 71 | 473 |
PO File | 1 | 36 | 39 | 111 |
JavaScript | 1 | 7 | 0 | 96 |
Bourne Shell | 1 | 21 | 10 | 94 |
JSON | 3 | 0 | 0 | 71 |
CoffeeScript | 1 | 22 | 1 | 62 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 10 | 27.03% |
▷ Public methods | 34 | 91.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 8.11% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin