89% cc-auto-activate-plugins

Code Review | CC-Auto-Activate-Plugins

WordPress plugin CC-Auto-Activate-Plugins scored89%from 54 tests.

About plugin

  • Plugin page: cc-auto-activate-...
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.1-5.1
  • WordPress version: 6.3.1
  • First release: Jan 3, 2018
  • Latest release: Feb 25, 2019
  • Number of updates: 7
  • Update frequency: every 59.7 days
  • Top authors: ClearcodeHQ (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /916 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼0.43ms] Passed 4 tests

Server-side resources used by CC-Auto-Activate-Plugins
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0943.59 ▲2.32
Dashboard /wp-admin3.38 ▲0.0750.58 ▼9.25
Posts /wp-admin/edit.php3.49 ▲0.1349.63 ▲2.73
Add New Post /wp-admin/post-new.php5.96 ▲0.0793.14 ▲5.25
Media Library /wp-admin/upload.php3.30 ▲0.0741.11 ▲2.48

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for CC-Auto-Activate-Plugins
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲5213.15 ▼1.214.04 ▲2.1842.12 ▼6.26
Dashboard /wp-admin2,215 ▲305.81 ▲0.73108.97 ▲4.0744.89 ▲2.94
Posts /wp-admin/edit.php2,097 ▲82.00 ▲0.0139.49 ▲1.2436.61 ▲1.58
Add New Post /wp-admin/post-new.php1,542 ▲2822.92 ▲5.55649.11 ▲24.2892.75 ▲30.80
Media Library /wp-admin/upload.php1,391 ▼04.16 ▼0.02114.32 ▲1.9742.14 ▼2.16

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
  • Screenshots: Screenshot #1 (**CC-Auto-Activate-Plugins** - Visit the 'Plugins' to activate the plugin.) image not found
Please take inspiration from this readme.txt

cc-auto-activate-plugins/plugin.php 77% from 13 tests

The main file in "CC-Auto-Activate-Plugins" v. 1.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("cc-auto-activate-plugins.php" instead of "plugin.php")
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("/")
  • Domain Path: Prefix the domain path with a forward slash character ("//")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin219 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP48174197
JSON10022

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity12.33
▷ Minimum class complexity2.00
▷ Maximum class complexity24.00
Average method complexity2.52
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes3
▷ Abstract classes133.33%
▷ Concrete classes266.67%
▷ Final classes00.00%
Methods22
▷ Static methods627.27%
▷ Public methods1463.64%
▷ Protected methods731.82%
▷ Private methods14.55%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
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.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png16.64KB7.67KB▼ 53.90%