83% cc-addon-pack

Code Review | Saitama Addon Pack

WordPress plugin Saitama Addon Pack scored83%from 54 tests.

About plugin

  • Plugin page: cc-addon-pack
  • Plugin version: 1.0.8
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3.1
  • WordPress version: 6.3.1
  • First release: Apr 26, 2016
  • Latest release: Dec 1, 2023
  • Number of updates: 16
  • Update frequency: every 173.4 days
  • Top authors: communitycom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /15,251 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▼3.53ms] Passed 4 tests

This is a short check of server-side resources used by Saitama Addon Pack
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2036.06 ▼4.25
Dashboard /wp-admin3.49 ▲0.1845.74 ▼3.43
Posts /wp-admin/edit.php3.60 ▲0.2448.71 ▼0.37
Add New Post /wp-admin/post-new.php6.07 ▲0.1892.35 ▼6.07
Media Library /wp-admin/upload.php3.41 ▲0.1832.60 ▲2.41

Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 12 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_cc_footernavi_widget
widget_theysaidso_widget
widget_cc_footercontact_widget
widget_cc_topicarea_widget
widget_cc_recent_widget
...

Browser metrics Passed 4 tests

Checking browser requirements for Saitama Addon Pack
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4414.31 ▼0.021.59 ▼0.1039.62 ▼4.35
Dashboard /wp-admin2,211 ▲345.61 ▲0.0791.41 ▼10.0943.27 ▼0.81
Posts /wp-admin/edit.php2,116 ▲132.03 ▲0.0739.54 ▲0.3237.07 ▼1.50
Add New Post /wp-admin/post-new.php1,539 ▲1323.55 ▼0.07633.19 ▲22.9253.33 ▲4.49
Media Library /wp-admin/upload.php1,416 ▲134.19 ▼0.0295.85 ▼4.1840.63 ▼1.61

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 11 options in the database
    • widget_cc_topicarea_widget
    • widget_cc_sns_widget
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_cc_footercontact_widget
    • widget_cc_footernavi_widget
    • widget_cc_recent_widget
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cc-addon-pack/includes/cc-contact-widget.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cc-addon-pack/includes/cc-functions.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cc-addon-pack/includes/cc-topicarea-widget.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cc-addon-pack/admin/common.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cc-addon-pack/includes/cc-footernavi-widget.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ccAddonPack_get_option() in wp-content/plugins/cc-addon-pack/admin/admin.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cc-addon-pack/includes/cc-sns-widget.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cc-addon-pack/includes/cc-recent-widget.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/cc-addon-pack/ccAddonPack.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (Feature can be stopped individually.), #2 (This is an example of SNS cooperation setting screen.)
  • Donate link: Please fix this invalid URI: ""
  • Plugin Name: Please specify the plugin name on the first line ( === cc-addon-pack === )
The official readme.txt is a good inspiration

cc-addon-pack/ccAddonPack.php 85% from 13 tests

The main PHP script in "Saitama Addon Pack" version 1.0.8 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 202 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("cc-addon-pack.php" instead of "ccAddonPack.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
Everything looks great! No dangerous files found in this plugin1,119 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP1017842874
PO File16481165
CSS113047
JavaScript12333

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity6.40
▷ Minimum class complexity3.00
▷ Maximum class complexity9.00
Average method complexity2.35
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions32
▷ Named functions2784.38%
▷ Anonymous functions515.62%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.19MB with 0.14MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png196.34KB56.56KB▼ 71.19%