79% climate-content-pool

Code Review | Climate Content Pool

WordPress plugin Climate Content Pool scored79%from 54 tests.

About plugin

  • Plugin page: climate-content-pool
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.8.1
  • WordPress version: 6.3.1
  • First release: Jun 4, 2015
  • Latest release: Sep 19, 2017
  • Number of updates: 11
  • Update frequency: every 76.2 days
  • Top authors: Aptivate (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /959 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0332.34 ▼4.43
Dashboard /wp-admin3.34 ▲0.0345.51 ▼3.84
Posts /wp-admin/edit.php3.45 ▲0.0947.85 ▲0.26
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.19 ▼22.16
Media Library /wp-admin/upload.php3.26 ▲0.0333.76 ▼0.27
Climate Content Pool /wp-admin/options-general.php?page=climate-content-pool3.2028.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.32 ▼1.051.95 ▲0.1841.26 ▼1.89
Dashboard /wp-admin2,207 ▲195.85 ▲0.9499.30 ▼10.1638.11 ▼6.86
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0339.25 ▲2.6733.76 ▼2.84
Add New Post /wp-admin/post-new.php6,235 ▲4,72126.29 ▲8.67850.60 ▲176.9262.64 ▲7.12
Media Library /wp-admin/upload.php1,392 ▲44.25 ▲0.0193.00 ▼3.9941.75 ▼5.14
Climate Content Pool /wp-admin/options-general.php?page=climate-content-pool8102.0624.5827.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP1226123733
Bourne Shell115459
XML10014

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 code0.09
Average class complexity3.83
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.35
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes116.67%
▷ Concrete classes583.33%
▷ Final classes00.00%
Methods48
▷ Static methods00.00%
▷ Public methods4287.50%
▷ Protected methods24.17%
▷ Private methods48.33%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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