89% easy-tags

Code Review | Easy Tags

WordPress plugin Easy Tags scored89%from 54 tests.

About plugin

  • Plugin page: easy-tags
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.8
  • WordPress version: 6.3.1
  • First release: Aug 28, 2017
  • Latest release: Aug 28, 2017
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: happycatplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /764 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼10.26ms] Passed 4 tests

Server-side resources used by Easy Tags
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0636.89 ▼4.25
Dashboard /wp-admin3.37 ▲0.0350.57 ▼14.01
Posts /wp-admin/edit.php3.43 ▲0.0644.54 ▼10.67
Add New Post /wp-admin/post-new.php5.96 ▲0.0697.80 ▼10.78
Media Library /wp-admin/upload.php3.30 ▲0.0639.51 ▼5.59

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Easy Tags: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲7414.35 ▲0.071.81 ▲0.2140.69 ▲0.42
Dashboard /wp-admin2,229 ▲495.65 ▼0.0288.49 ▲0.8435.92 ▼4.31
Posts /wp-admin/edit.php2,135 ▲352.02 ▼0.0640.92 ▲4.3039.44 ▲6.45
Add New Post /wp-admin/post-new.php1,558 ▲3023.29 ▲0.23628.26 ▲1.7653.97 ▲2.83
Media Library /wp-admin/upload.php1,434 ▲374.20 ▲0.04101.46 ▼0.3343.00 ▼5.09

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: Please delete some tags, you are using 23 tag instead of maximum 10
You can look at the official readme.txt

easy-tags/easy-tags.php 92% from 13 tests

This is the main PHP file of "Easy Tags" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 169 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin780 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript31218374
PHP348113337
CSS216669

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity3.45
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.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.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
happycatlogo.png11.72KB4.49KB▼ 61.67%