Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/resource-library/inc/WPAlchemy/MetaBox.php+55
Methods with the same name as their class will not be constructors in a future version of PHP; WPAlchemy_MetaBox has a deprecated constructor
Server metrics [RAM: ▼1.51MB] [CPU: ▼55.09ms] Passed 4 tests
Server-side resources used by Resource Library
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.49 ▼0.98 | 7.08 ▼37.48 |
Dashboard /wp-admin | 2.51 ▼0.84 | 8.97 ▼56.72 |
Posts /wp-admin/edit.php | 2.51 ▼0.85 | 8.35 ▼46.28 |
Add New Post /wp-admin/post-new.php | 2.51 ▼3.38 | 9.07 ▼79.87 |
Media Library /wp-admin/upload.php | 2.51 ▼0.72 | 6.88 ▼33.29 |
Add New /wp-admin/post-new.php?post_type=mdresourcelib | 2.51 | 7.92 |
Categories /wp-admin/edit-tags.php?taxonomy=groups&post_type=mdresourcelib | 2.51 | 7.53 |
All Resources /wp-admin/edit.php?post_type=mdresourcelib | 2.51 | 7.48 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 212 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
groups_children |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Resource Library: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,078 ▲332 | 15.34 ▲0.95 | 5.88 ▲4.09 | 37.09 ▼6.72 |
Dashboard /wp-admin | 2,394 ▲206 | 6.43 ▲1.53 | 115.72 ▲11.22 | 39.82 ▼2.82 |
Posts /wp-admin/edit.php | 2,310 ▲221 | 3.34 ▲1.34 | 48.21 ▲11.06 | 29.98 ▼3.47 |
Add New Post /wp-admin/post-new.php | 1,571 ▲37 | 23.13 ▲0.10 | 596.33 ▼105.19 | 32.82 ▼27.32 |
Media Library /wp-admin/upload.php | 1,447 ▲62 | 4.26 ▲0.07 | 79.94 ▼36.14 | 42.02 ▼2.59 |
Add New /wp-admin/post-new.php?post_type=mdresourcelib | 1,871 | 3.57 | 69.13 | 47.91 |
Categories /wp-admin/edit-tags.php?taxonomy=groups&post_type=mdresourcelib | 1,637 | 3.13 | 43.32 | 32.17 |
All Resources /wp-admin/edit.php?post_type=mdresourcelib | 1,276 | 3.36 | 41.88 | 28.22 |
Uninstaller [IO: ▲0.62MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the followingZombie WordPress options detected upon uninstall: 8 options
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/resource-library/inc/WPAlchemy/MetaBox.php+55
Methods with the same name as their class will not be constructors in a future version of PHP; WPAlchemy_MetaBox has a deprecated constructor
- Incomplete uninstall procedure, leaving 212 files (0.62MB) in the plugin directory
- (new file) inc/Twig/Error/Loader.php
- (new file) inc/Twig/Compiler.php
- (new file) inc/Symfony/Component/ClassLoader/Psr4ClassLoader.php
- (new file) inc/Twig/CompilerInterface.php
- (new file) inc/MightyDev/ResourcePluginController.php
- (new file) inc/Twig/Environment.php
- (new file) inc/MightyDev/helpers.php
- (new file) inc/Twig/Autoloader.php
- (new file) inc/MightyDev/PluginController.php
- (new file) inc/Twig/Error.php
- ...
- recovery_mode_email_last_sent
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- groups_children
- can_compress_scripts
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
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=mdresourcelib
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/resource-library/inc/WPAlchemy/MetaBox.php+55
Methods with the same name as their class will not be constructors in a future version of PHP; WPAlchemy_MetaBox has a deprecated constructor
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 take a closer look at the following
- 149× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/resource-library/inc/Twig/Test/NodeTestCase.php:11
- > PHP Fatal error
Uncaught Error: Class 'Twig_Error' not found in wp-content/plugins/resource-library/inc/Twig/Error/Runtime.php:18
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/resource-library/inc/Twig/Node/Print.php:18
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression' not found in wp-content/plugins/resource-library/inc/Twig/Node/Expression/Call.php:11
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/resource-library/inc/Twig/Node/Expression/Binary/BitwiseXor.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/resource-library/inc/Twig/Node/Expression/Binary/Sub.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Twig_ParserInterface' not found in wp-content/plugins/resource-library/inc/Twig/Parser.php:18
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Unary' not found in wp-content/plugins/resource-library/inc/Twig/Node/Expression/Unary/Not.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Extension' not found in wp-content/plugins/resource-library/inc/Twig/Extension/Escaper.php:11
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/resource-library/inc/Twig/Node/Macro.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
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
Attributes that require attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== resource-library ===
)
resource-library/resource.php 92% from 13 tests
The primary PHP file in "Resource Library" version 0.1.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("resource-library.php" instead of "resource.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin11,502 lines of code in 206 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 191 | 2,351 | 5,739 | 10,360 |
CSS | 8 | 25 | 45 | 420 |
HTML | 3 | 2 | 1 | 373 |
JSON | 1 | 0 | 0 | 226 |
JavaScript | 2 | 0 | 2 | 76 |
SVG | 1 | 0 | 0 | 47 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 7.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 239.00 |
Average method complexity | 2.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 68.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 19 | |
Traits | 0 | |
Classes | 169 | |
▷ Abstract classes | 14 | 8.28% |
▷ Concrete classes | 155 | 91.72% |
▷ Final classes | 0 | 0.00% |
Methods | 860 | |
▷ Static methods | 14 | 1.63% |
▷ Public methods | 760 | 88.37% |
▷ Protected methods | 94 | 10.93% |
▷ Private methods | 6 | 0.70% |
Functions | 57 | |
▷ Named functions | 49 | 85.96% |
▷ Anonymous functions | 8 | 14.04% |
Constants | 58 | |
▷ Global constants | 18 | 31.03% |
▷ Class constants | 40 | 68.97% |
▷ Public constants | 40 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin