Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼10.02ms] Passed 4 tests
Analyzing server-side resources used by Plugin Information Card
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 45.24 ▼0.25 |
Dashboard /wp-admin | 3.36 ▲0.05 | 47.99 ▼11.81 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 49.23 ▲1.76 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 82.70 ▼27.86 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.11 ▼0.14 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
pic_css |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
pic_days |
pic_format |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Plugin Information Card
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.42 ▲0.15 | 1.80 ▲0.07 | 45.17 ▲4.30 |
Dashboard /wp-admin | 2,193 ▲19 | 5.55 ▼0.05 | 84.52 ▼6.79 | 38.03 ▼2.56 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.98 ▼0.04 | 36.03 ▼6.25 | 33.76 ▼6.22 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 22.94 ▼0.27 | 673.80 ▲65.16 | 51.87 ▼16.51 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.25 ▲0.02 | 96.44 ▼8.25 | 47.46 ▲2.68 |
Plugin Information Card /wp-admin/plugin-information-card.php | 26 | 0.42 | 0.12 | 14.35 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 9 options in the database
- can_compress_scripts
- widget_recent-posts
- pic_css
- pic_format
- widget_theysaidso_widget
- pic_days
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/plugin-information-card/plugin-information-card.php:32
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/plugin-information-card.php
- > Network (severe)
wp-admin/plugin-information-card.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: information, sticky, plugin, plugins, wordpress...
plugin-information-card/plugin-information-card.php Passed 13 tests
The main PHP file in "Plugin Information Card" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
105 characters long description:
This plugin adds the functionality to output information about plugins in the WordPress plugin directory.
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
There were no executable files found in this plugin190 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 31 | 24 | 190 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected