83% easy-css3-effects

Code Review | Easy CSS Effects

WordPress plugin Easy CSS Effects scored83%from 54 tests.

About plugin

  • Plugin page: easy-css3-effects
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5.3
  • WordPress version: 6.3.1
  • First release: Jul 28, 2016
  • Latest release: Jul 28, 2016
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: amg26 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /718 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.24ms] Passed 4 tests

Server-side resources used by Easy CSS Effects
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.71 ▲3.80
Dashboard /wp-admin3.35 ▲0.0044.38 ▼14.27
Posts /wp-admin/edit.php3.40 ▲0.0446.28 ▲0.81
Add New Post /wp-admin/post-new.php5.93 ▲0.0489.89 ▼15.08
Media Library /wp-admin/upload.php3.27 ▲0.0434.23 ▼0.42

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Easy CSS Effects
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲4514.71 ▲0.151.83 ▲0.0243.65 ▲2.18
Dashboard /wp-admin2,192 ▲125.58 ▼0.0984.39 ▼4.9737.48 ▼8.65
Posts /wp-admin/edit.php2,103 ▲31.96 ▼0.0134.54 ▲0.2032.05 ▼5.01
Add New Post /wp-admin/post-new.php1,531 ▲523.26 ▼0.41663.04 ▲7.4962.12 ▲7.06
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.0692.82 ▼18.7743.04 ▼6.62

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/easy-css3-effects/index.php
    • > /wp-content/plugins/easy-css3-effects/classes/class-ece-shortcodes.php
    • > /wp-content/plugins/easy-css3-effects/easy-css-effects.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Donate link: Please fix this invalid URI: "andrewmgunn.com/donate"
The official readme.txt might help

easy-css3-effects/easy-css-effects.php 85% from 13 tests

The main PHP file in "Easy CSS Effects" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("easy-css3-effects.php" instead of "easy-css-effects.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin378 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS22410209
PHP36542169

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity3.50
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces2
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin