10% essential-performance

Code Review | Essential Performance

WordPress plugin Essential Performance scored10%from 54 tests.

About plugin

  • Plugin page: essential-perform...
  • Plugin version: 0.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.3
  • WordPress version: 6.3.1
  • First release: Dec 4, 2019
  • Latest release: Apr 20, 2020
  • Number of updates: 6
  • Update frequency: every 23.2 days
  • Top authors: vozubko (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /539 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
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/essential-performance/src/framework/Core/Option.php+44
    Trying to get property 'configName' of non-object

Server metrics [RAM: ▼1.96MB] [CPU: ▼52.02ms] Passed 4 tests

Analyzing server-side resources used by Essential Performance
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.57 ▼36.49
Dashboard /wp-admin2.05 ▼1.266.28 ▼40.77
Posts /wp-admin/edit.php2.05 ▼1.317.04 ▼44.19
Add New Post /wp-admin/post-new.php2.05 ▼3.845.60 ▼86.62
Media Library /wp-admin/upload.php2.05 ▼1.185.85 ▼31.48
Essential Performance /wp-admin/options-general.php?page=essential-performance-settings2.056.88

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 448 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Essential Performance: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.37 ▲0.121.82 ▲0.0146.34 ▲0.73
Dashboard /wp-admin2,196 ▲325.52 ▼0.1187.26 ▼16.1339.02 ▼4.64
Posts /wp-admin/edit.php2,101 ▲12.05 ▲0.0435.24 ▼3.3035.98 ▲0.46
Add New Post /wp-admin/post-new.php1,548 ▲1723.34 ▼0.10654.34 ▼31.6163.03 ▲3.99
Media Library /wp-admin/upload.php1,401 ▲44.31 ▲0.03111.59 ▲3.8446.79 ▼0.75
Essential Performance /wp-admin/options-general.php?page=essential-performance-settings9703.4373.4353.69

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/essential-performance/src/framework/Core/Option.php+44
    Trying to get property 'configName' of non-object
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=essential-performance-settings
    • > Notice in wp-content/plugins/essential-performance/src/framework/Core/Option.php+44
    Trying to get property 'configName' of non-object
    • > GET request to /wp-admin/options-general.php?page=essential-performance-settings
    • > Notice in wp-content/plugins/essential-performance/src/framework/Core/App.php+132
    Trying to get property 'path' of non-object

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 15× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Trait 'EssentialPerformanceFramework\\Core\\RegistryImplementation' not found in wp-content/plugins/essential-performance/src/framework/Core/App.php on line 32
    • > PHP Fatal error
      Uncaught Error: Class 'EssentialPerformanceFramework\\Core\\Common' not found in wp-content/plugins/essential-performance/src/framework/Core/Model.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'EssentialPerformanceFramework\\Core\\Common' not found in wp-content/plugins/essential-performance/src/framework/Core/Template.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'EssentialPerformanceFramework\\Core\\Controller' not found in wp-content/plugins/essential-performance/src/application/Controller/BackendController.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'EssentialPerformanceFramework\\Core\\Controller' not found in wp-content/plugins/essential-performance/src/application/Controller/CodeInjectionController.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'EssentialPerformanceFramework\\Core\\Controller' not found in wp-content/plugins/essential-performance/src/application/Controller/LazyLoadController.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'EssentialPerformanceFramework\\Core\\Common' not found in wp-content/plugins/essential-performance/src/framework/Core/Loader.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/essential-performance/src/framework/Core/Widget.php:27
    • > PHP Fatal error
      Trait 'EssentialPerformanceFramework\\Core\\RegistryImplementation' not found in wp-content/plugins/essential-performance/src/framework/Core/Common.php on line 27
    • > PHP Fatal error
      Uncaught Error: Class 'EssentialPerformanceFramework\\Core\\Controller' not found in wp-content/plugins/essential-performance/src/application/Controller/FrontendController.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: performance, speed, pagespeed insights, cache

essential-performance/plugin.php 85% from 13 tests

The main file in "Essential Performance" v. 0.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.6" instead of "5.2")
  • Main file name: Name the main plugin file the same as the plugin slug ("essential-performance.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin3,906 lines of code in 444 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript419434403,019
PHP24281621884
CSS1003

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity4.52
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces5
Interfaces2
Traits1
Classes18
▷ Abstract classes422.22%
▷ Concrete classes1477.78%
▷ Final classes17.14%
Methods66
▷ Static methods46.06%
▷ Public methods6192.42%
▷ Protected methods00.00%
▷ Private methods57.58%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.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
No PNG images were found in this plugin