10% easy-pagespeed

Code Review | Easy PageSpeed

WordPress plugin Easy PageSpeed scored10%from 54 tests.

About plugin

  • Plugin page: easy-pagespeed
  • Plugin version: 1.40
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.8
  • WordPress version: 6.3.1
  • First release: Feb 6, 2016
  • Latest release: Aug 1, 2017
  • Number of updates: 18
  • Update frequency: every 30.1 days
  • Top authors: manojtd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,389 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/easy-pagespeed/EzOptions.php+21
    Methods with the same name as their class will not be constructors in a future version of PHP; EzBaseOption has a deprecated constructor

Server metrics [RAM: ▼1.70MB] [CPU: ▼49.15ms] Passed 4 tests

This is a short check of server-side resources used by Easy PageSpeed
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.29 ▼1.175.11 ▼33.46
Dashboard /wp-admin2.31 ▼1.006.35 ▼40.34
Posts /wp-admin/edit.php2.31 ▼1.057.70 ▼40.74
Add New Post /wp-admin/post-new.php2.31 ▼3.587.29 ▼82.05
Media Library /wp-admin/upload.php2.31 ▼0.925.79 ▼27.49

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy PageSpeed
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8314.43 ▼0.322.32 ▲0.4139.52 ▼6.82
Dashboard /wp-admin2,210 ▲255.90 ▼0.0096.73 ▼3.2336.94 ▼6.38
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0440.10 ▲2.4633.94 ▲0.64
Add New Post /wp-admin/post-new.php1,517 ▲317.41 ▼0.11651.65 ▼35.3756.23 ▼14.77
Media Library /wp-admin/upload.php1,392 ▲44.28 ▲0.1392.81 ▼24.8441.38 ▼7.43
Easy PageSpeed Lite /wp-admin/easy-pagespeed.php260.440.0714.69

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/easy-pagespeed/EzOptions.php+21
    Methods with the same name as their class will not be constructors in a future version of PHP; EzBaseOption has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/file.php): failed to open stream: No such file or directory in wp-content/plugins/easy-pagespeed/PageSpeedBase.php on line 7
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/file.php): failed to open stream: No such file or directory in wp-content/plugins/easy-pagespeed/PageSpeedBase.php on line 7
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/file.php' (include_path='.:/usr/share/php') in wp-content/plugins/easy-pagespeed/PageSpeedBase.php on line 7
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/easy-pagespeed/myPlugins.php:300
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-pagespeed/PageSpeedBase.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/easy-pagespeed/info-divs.php:2
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-pagespeed/PageSpeedBase.php on line 7
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/file.php' (include_path='.:/usr/share/php') in wp-content/plugins/easy-pagespeed/PageSpeedBase.php on line 7

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/easy-pagespeed.php
    • > Network (severe)
    wp-admin/easy-pagespeed.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (*Easy PageSpeed* admin page, showing the simple, single-page, easy-to-understand settings.), #2 (*Easy PageSpeed Pro* admin page, showing the extra features.), #3 (My blog performance with no CDN support.), #4 (My blog with *Easy PageSpeed* set up.)
You can take inspiration from this readme.txt

easy-pagespeed/easy-pagespeed.php Passed 13 tests

"Easy PageSpeed" version 1.40's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
90 characters long description:
Easy PageSpeed is a light-weight and highly effective performance optimizer for your blog.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected3,044 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP62571181,928
JavaScript1511341,116

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity10.35
▷ Minimum class complexity1.00
▷ Maximum class complexity54.00
Average method complexity2.53
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods104
▷ Static methods43.85%
▷ Public methods104100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.20MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/ezpaypal.png9.22KB3.44KB▼ 62.72%
ezpaypal.png9.22KB3.44KB▼ 62.72%
screenshot-2.png48.29KB18.90KB▼ 60.87%
screenshot-3.png52.58KB52.00KB▼ 1.08%
ezsupport.png3.13KB2.01KB▼ 35.75%