10% effect-maker

Code Review | Effect Maker

WordPress plugin Effect Maker scored10%from 54 tests.

About plugin

  • Plugin page: effect-maker
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Oct 13, 2014
  • Latest release: Nov 13, 2015
  • Number of updates: 8
  • Update frequency: every 49.5 days
  • Top authors: anibalwainstein (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /9,388 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/effect-maker/effect-maker.php+228
    The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence

Server metrics [RAM: ▼1.84MB] [CPU: ▼57.03ms] Passed 4 tests

An overview of server-side resources used by Effect Maker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.324.85 ▼36.04
Dashboard /wp-admin2.17 ▼1.146.14 ▼47.26
Posts /wp-admin/edit.php2.17 ▼1.195.92 ▼46.09
Add New Post /wp-admin/post-new.php2.17 ▼3.726.90 ▼98.73
Media Library /wp-admin/upload.php2.17 ▼1.066.78 ▼35.63

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 150 new files
Database: 2 new tables, 7 new options
New tables
wp_effectmakerparameters
wp_effectmakeruserconfigurations
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
effectmaker_db_version
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Effect Maker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲13013.50 ▼1.069.82 ▲8.1843.54 ▲0.03
Dashboard /wp-admin2,211 ▲315.56 ▼0.0791.64 ▲1.6744.33 ▲0.92
Posts /wp-admin/edit.php2,116 ▲162.10 ▲0.1241.70 ▲2.0437.82 ▼0.39
Add New Post /wp-admin/post-new.php1,539 ▲1323.19 ▲0.12692.07 ▲10.1752.79 ▲0.87
Media Library /wp-admin/upload.php1,419 ▲194.18 ▲0.0893.45 ▼16.6542.42 ▼9.67

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/effect-maker/effect-maker.php+228
    The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
  • Zombie tables were found after uninstall: 2 tables
    • wp_effectmakeruserconfigurations
    • wp_effectmakerparameters
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • effectmaker_db_version
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/effect-maker/effect-maker.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: Too many tags (39 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Plugin Name: You should set the name of your plugin on the first line ( === effect-maker === )
You can take inspiration from this readme.txt

effect-maker/effect-maker.php 92% from 13 tests

The main PHP file in "Effect Maker" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 695 characters long)

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
No dangerous file extensions were detected5,248 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript243962984,222
CSS41129466
PHP13415308
XML100139
HTML2260113

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
112 PNG files occupy 3.39MB with 1.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
workspace/verticalscrollericon.png1.88KB1.09KB▼ 41.71%
css/images/ui-icons_217bc0_256x240.png4.44KB4.17KB▼ 6.02%
workspace/textfader.png4.44KB2.42KB▼ 45.50%
workspace/consoleimageicon.png2.94KB1.49KB▼ 49.30%
workspace/em_portrait2.png24.24KB14.63KB▼ 39.66%