68% easiio

Code Review | Easiio Plugin

WordPress plugin Easiio Plugin scored68%from 54 tests.

About plugin

  • Plugin page: easiio
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 4, 2023
  • Latest release: Aug 11, 2023
  • Number of updates: 8
  • Update frequency: every 138.4 days
  • Top authors: easiio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /164 total downloads

Benchmarks

Plugin footprint 65% 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.93MB] [CPU: ▼33.44ms] Passed 4 tests

A check of server-side resources used by Easiio Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.29 ▼1.56
Dashboard /wp-admin3.01 ▼0.2924.44 ▼26.41
Posts /wp-admin/edit.php3.01 ▼0.3426.78 ▼20.04
Add New Post /wp-admin/post-new.php3.01 ▼2.8722.16 ▼75.01
Media Library /wp-admin/upload.php3.01 ▼0.2223.46 ▼12.29
Easi flow Settings /wp-admin/options-general.php?page=easi_settings3.0125.30

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
easiio-flow-visibility-options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Easiio Plugin: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,858 ▲9714.37 ▼0.193.82 ▲1.6442.87 ▼8.53
Dashboard /wp-admin2,196 ▲195.57 ▼0.1093.66 ▲7.7642.04 ▼2.30
Posts /wp-admin/edit.php2,104 ▲42.03 ▼0.0039.27 ▲0.6434.44 ▼4.67
Add New Post /wp-admin/post-new.php1,529 ▲123.13 ▲0.04676.06 ▼33.2754.31 ▼2.18
Media Library /wp-admin/upload.php1,404 ▲44.22 ▼0.0197.48 ▼7.6041.03 ▼5.46
Easi flow Settings /wp-admin/options-general.php?page=easi_settings1,0242.1330.6830.02

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=easi_settings
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/easiio/index.php:104

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 Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: support center, call center, customer sale

easiio/index.php 85% from 13 tests

"Easiio Plugin" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("easiio.php" instead of "index.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 289 characters long)

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
Success! There were no dangerous files found in this plugin1,066 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP23141723
CSS1237342
JavaScript1011

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods225.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
(invalid) assets/logo.png16.56KB0.00KB▼ 100.00%