89% echbay-for-coccoc

Code Review | EchBay For CocCoc

WordPress plugin EchBay For CocCoc scored89%from 54 tests.

About plugin

  • Plugin page: echbay-for-coccoc
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.2
  • WordPress version: 6.3.1
  • First release: Apr 18, 2018
  • Latest release: Jun 26, 2023
  • Number of updates: 25
  • Update frequency: every 75.8 days
  • Top authors: itvn9online (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,975 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.43ms] Passed 4 tests

An overview of server-side resources used by EchBay For CocCoc
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.22 ▼2.85
Dashboard /wp-admin3.35 ▲0.0146.14 ▼11.75
Posts /wp-admin/edit.php3.40 ▲0.0550.21 ▲0.93
Add New Post /wp-admin/post-new.php5.93 ▲0.0586.19 ▼16.06
Media Library /wp-admin/upload.php3.27 ▲0.0536.87 ▲5.28
Webgiare Plugins /wp-admin/admin.php?page=echbay-plugins-menu3.2432.64
For CocCoc /wp-admin/admin.php?page=echbay-for-coccoc3.2433.41

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

EchBay For CocCoc: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲9913.28 ▼1.101.73 ▲0.0840.21 ▲1.67
Dashboard /wp-admin2,233 ▲424.85 ▼0.02106.33 ▲3.7440.84 ▼2.10
Posts /wp-admin/edit.php2,113 ▲271.99 ▼0.0339.95 ▲0.2735.51 ▼0.88
Add New Post /wp-admin/post-new.php1,550 ▲3322.95 ▲5.42641.70 ▲24.1655.12 ▲6.84
Media Library /wp-admin/upload.php1,409 ▲214.21 ▼0.0894.08 ▲0.4143.41 ▲3.80
Webgiare Plugins /wp-admin/admin.php?page=echbay-plugins-menu9301.8825.0032.53
For CocCoc /wp-admin/admin.php?page=echbay-for-coccoc9301.9229.5931.31

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected 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
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (Show in Coc Coc only.), #2 (Setting in admin.)
The official readme.txt is a good inspiration

echbay-for-coccoc/eb.php 77% from 13 tests

The principal PHP file in "EchBay For CocCoc" v. 1.0.4 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("echbay-for-coccoc.php" instead of "eb.php")
  • Domain Path: The domain path folder does not exist ("/languages/")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected257 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP1074251
CSS2002
HTML2002
JavaScript2002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity3.89
▷ Minimum method complexity2.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin