89% image-effect-ck

Code Review | Image Effect CK

WordPress plugin Image Effect CK scored89%from 54 tests.

About plugin

  • Plugin page: image-effect-ck
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0.0
  • WordPress version: 6.3.1
  • First release: Dec 9, 2016
  • Latest release: Dec 9, 2018
  • Number of updates: 14
  • Update frequency: every 102.3 days
  • Top authors: ced1870 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,380 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.01MB] [CPU: ▼7.51ms] Passed 4 tests

A check of server-side resources used by Image Effect CK
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.65 ▼3.87
Dashboard /wp-admin3.31 ▼0.0449.38 ▼19.77
Posts /wp-admin/edit.php3.36 ▲0.0047.90 ▼4.18
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.56 ▼2.21
Media Library /wp-admin/upload.php3.23 ▲0.0035.36 ▲0.30

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Image Effect CK
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,879 ▲11813.40 ▼0.988.28 ▲6.5439.64 ▼1.41
Dashboard /wp-admin2,192 ▲125.62 ▼0.0592.60 ▲1.9242.07 ▼1.12
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0140.11 ▲4.1336.47 ▲0.94
Add New Post /wp-admin/post-new.php1,529 ▼623.45 ▲5.03660.32 ▲35.8060.06 ▼16.90
Media Library /wp-admin/upload.php1,403 ▲34.19 ▼0.07102.76 ▲3.1244.88 ▲0.83

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
The SRP test was a success

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: image, effect

image-effect-ck/image-effect-ck.php 85% from 13 tests

The main PHP script in "Image Effect CK" version 1.1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 149 characters long)
  • Domain Path: The domain path points to a folder that does not exist ("/language")

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
No dangerous file extensions were detected2,257 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS14151612,148
JavaScript1101655
PHP1131553
HTML1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.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