90% cobiro

Code Review | Cobiro

WordPress plugin Cobiro scored90%from 54 tests.

About plugin

  • Plugin page: cobiro
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.3
  • WordPress version: 6.3.1
  • First release: Jan 7, 2019
  • Latest release: Jan 22, 2020
  • Number of updates: 27
  • Update frequency: every 14.2 days
  • Top authors: cobiro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /4,145 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
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼19.08ms] Passed 4 tests

This is a short check of server-side resources used by Cobiro
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0045.10 ▼17.81
Dashboard /wp-admin3.31 ▼0.0451.19 ▼20.04
Posts /wp-admin/edit.php3.36 ▲0.0051.30 ▼6.22
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.43 ▼32.24
Media Library /wp-admin/upload.php3.23 ▲0.0041.46 ▲3.76

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Cobiro
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.36 ▲0.091.65 ▼0.2545.07 ▼2.71
Dashboard /wp-admin2,195 ▲155.58 ▼0.0786.84 ▼20.7536.22 ▼0.35
Posts /wp-admin/edit.php2,100 ▼31.95 ▼0.0637.12 ▼6.1035.79 ▲2.27
Add New Post /wp-admin/post-new.php1,526 ▼222.97 ▲0.31640.04 ▲3.0375.91 ▲21.58
Media Library /wp-admin/upload.php1,400 ▼04.12 ▼0.08115.06 ▲4.0247.95 ▲2.96

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (15 tag instead of maximum 10)
The official readme.txt might help

cobiro/cobiro.php Passed 13 tests

Analyzing the main PHP file in "Cobiro" version 1.1.2
34 characters long description:
Free Google Ads Automation Module.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin533 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP15141363533

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity4.18
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.85
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes19.09%
Methods42
▷ Static methods1330.95%
▷ Public methods3071.43%
▷ Protected methods00.00%
▷ Private methods1228.57%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants6
▷ Global constants6100.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
PNG images were not found in this plugin