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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.68ms] Passed 4 tests
A check of server-side resources used by Climate Content Pool
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 32.34 ▼4.43 |
Dashboard /wp-admin | 3.34 ▲0.03 | 45.51 ▼3.84 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 47.85 ▲0.26 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 83.19 ▼22.16 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.76 ▼0.27 |
Climate Content Pool /wp-admin/options-general.php?page=climate-content-pool | 3.20 | 28.31 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
climate_content_pool_general_settings |
widget_recent-posts |
Browser metrics Passed 4 tests
Climate Content Pool: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.32 ▼1.05 | 1.95 ▲0.18 | 41.26 ▼1.89 |
Dashboard /wp-admin | 2,207 ▲19 | 5.85 ▲0.94 | 99.30 ▼10.16 | 38.11 ▼6.86 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.03 | 39.25 ▲2.67 | 33.76 ▼2.84 |
Add New Post /wp-admin/post-new.php | 6,235 ▲4,721 | 26.29 ▲8.67 | 850.60 ▲176.92 | 62.64 ▲7.12 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.25 ▲0.01 | 93.00 ▼3.99 | 41.75 ▼5.14 |
Climate Content Pool /wp-admin/options-general.php?page=climate-content-pool | 810 | 2.06 | 24.58 | 27.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- climate_content_pool_general_settings
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=climate-content-pool
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method ClimateContentPool::add_options_page_callback() should not be called statically
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 fix the following items
- 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/climate-content-pool/tests/bootstrap.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/climate-content-pool/tests/ContentPoolTestBase.php:2
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/climate-content-pool/tests/bootstrap.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function override_function() in wp-content/plugins/climate-content-pool/tests/define-mock-functions.php:14
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/climate-content-pool/tests/define-mock-functions.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function override_function() in wp-content/plugins/climate-content-pool/tests/define-mock-functions.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function override_function() in wp-content/plugins/climate-content-pool/tests/define-mock-functions.php:14
- > PHP Notice
Undefined variable: mock_function_args in wp-content/plugins/climate-content-pool/tests/define-mock-functions.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function override_function() in wp-content/plugins/climate-content-pool/tests/define-mock-functions.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function override_function() in wp-content/plugins/climate-content-pool/tests/define-mock-functions.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: climate tagger, api, content pool
climate-content-pool/climate-content-pool.php Passed 13 tests
The principal PHP file in "Climate Content Pool" v. 1.0.2 is loaded by WordPress automatically on each request
49 characters long description:
Pushes posts into the Climate Tagger Content Pool
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected806 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 261 | 23 | 733 |
Bourne Shell | 1 | 15 | 4 | 59 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 3.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 1 | 16.67% |
▷ Concrete classes | 5 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 42 | 87.50% |
▷ Protected methods | 2 | 4.17% |
▷ Private methods | 4 | 8.33% |
Functions | 5 | |
▷ Named functions | 5 | 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