84% coothemes-icons

Code Review | Coothemes Icons

WordPress plugin Coothemes Icons scored84%from 54 tests.

About plugin

  • Plugin page: coothemes-icons
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 25, 2018
  • Latest release: Jul 27, 2018
  • Number of updates: 27
  • Update frequency: every 0.1 days
  • Top authors: coothemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /876 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.02MB] [CPU: ▲5.41ms] Passed 4 tests

Analyzing server-side resources used by Coothemes Icons
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0248.69 ▲8.51
Dashboard /wp-admin3.32 ▲0.0259.34 ▲7.98
Posts /wp-admin/edit.php3.37 ▲0.0255.19 ▲8.50
Add New Post /wp-admin/post-new.php5.92 ▲0.0492.22 ▲0.56
Media Library /wp-admin/upload.php3.25 ▲0.0239.82 ▲4.58

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Coothemes Icons: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲7114.38 ▼0.342.09 ▲0.2744.38 ▼0.80
Dashboard /wp-admin2,234 ▲635.77 ▲0.2095.07 ▼4.0240.25 ▼3.63
Posts /wp-admin/edit.php2,144 ▲412.31 ▲0.3340.76 ▲3.1334.27 ▲1.57
Add New Post /wp-admin/post-new.php1,564 ▲3323.36 ▼0.06685.57 ▲40.0252.88 ▲2.16
Media Library /wp-admin/upload.php1,439 ▲454.38 ▲0.17112.61 ▲9.0846.43 ▲2.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/coothemes-icons/admin/icon-html.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Requires at least: Invalid plugin version format
Please take inspiration from this readme.txt

coothemes-icons/coothemes-icons.php 92% from 13 tests

The main file in "Coothemes Icons" v. 1.0.2 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:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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
Good job! No executable or dangerous file extensions detected15,867 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP94,52428211,202
CSS32,299462,670
SVG13,46331,751
JavaScript114226244

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity1.60
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.21
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods14
▷ Static methods321.43%
▷ Public methods1178.57%
▷ Protected methods00.00%
▷ Private methods321.43%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/rss_icon.png1.09KB1.26KB0.00%
images/wordpress-icon.png4.29KB1.37KB▼ 68.08%