Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.59MB] [CPU: ▼271.36ms] Passed 4 tests
An overview of server-side resources used by Include
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.42 ▲0.70 | 33.39 ▲12.28 |
Dashboard /wp-admin | 3.65 ▲0.60 | 48.86 ▲8.21 |
Posts /wp-admin/edit.php | 3.70 ▲0.59 | 46.39 ▲2.13 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.58 | 94.90 ▼1,082.16 |
Media Library /wp-admin/upload.php | 3.59 ▲0.59 | 33.65 ▼13.62 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Include
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,669 ▲87 | 15.86 ▼0.13 | 7.91 ▲0.32 | 54.52 ▲1.27 |
Dashboard /wp-admin | 2,950 ▲100 | 5.96 ▲0.10 | 138.08 ▲0.06 | 104.26 ▲1.71 |
Posts /wp-admin/edit.php | 2,726 ▲23 | 2.68 ▼0.01 | 66.13 ▼1.24 | 94.33 ▼1.38 |
Add New Post /wp-admin/post-new.php | 1,866 ▲13 | 19.14 ▲0.07 | 367.39 ▼6.66 | 111.59 ▲12.65 |
Media Library /wp-admin/upload.php | 1,789 ▲17 | 5.02 ▼0.02 | 143.87 ▼10.22 | 111.61 ▼17.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
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 no errors were found, this is by no means 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
Almost there! Just fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Trait 'PluginFramework\\V_1_1\\PluginInfo' not found in wp-content/plugins/include/framework/core.class.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'PluginFramework\\V_1_1\\Core' not found in wp-content/plugins/include/plugin.class.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function PluginFramework\\V_1_1\\add_action() in wp-content/plugins/include/framework/traits/hooks.trait.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
- Screenshots: A description for screenshot #1 is required in include/assets to your readme.txt
include/include.php Passed 13 tests
This is the main PHP file of "Include" version 4.0.24, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
67 characters long description:
Include a page, post, activity, or other query-object into another.
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
Success! There were no dangerous files found in this plugin2,736 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 255 | 529 | 2,672 |
Mustache | 5 | 19 | 0 | 64 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 7.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 5 | |
Traits | 14 | |
Classes | 30 | |
▷ Abstract classes | 5 | 16.67% |
▷ Concrete classes | 25 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 269 | |
▷ Static methods | 4 | 1.49% |
▷ Public methods | 198 | 73.61% |
▷ Protected methods | 33 | 12.27% |
▷ Private methods | 38 | 14.13% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 62 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 62 | 100.00% |
▷ Public constants | 62 | 100.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected