83% eve-dynamic-prerender

Code Review | EVE Dynamic Prerender

WordPress plugin EVE Dynamic Prerender scored83%from 54 tests.

About plugin

  • Plugin page: eve-dynamic-prere...
  • Plugin version: 4.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-5.2
  • WordPress version: 6.3.1
  • First release: Nov 29, 2017
  • Latest release: May 16, 2019
  • Number of updates: 20
  • Update frequency: every 26.7 days
  • Top authors: gsacheli (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,078 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.53ms] Passed 4 tests

An overview of server-side resources used by EVE Dynamic Prerender
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.38 ▲1.05
Dashboard /wp-admin3.32 ▲0.0246.09 ▼2.09
Posts /wp-admin/edit.php3.38 ▲0.0250.97 ▲3.44
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.19 ▼12.78
Media Library /wp-admin/upload.php3.25 ▲0.0234.19 ▼0.30

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: 1 new table, 6 new options
New tables
wp_PRERENDER
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for EVE Dynamic Prerender
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,896 ▲13513.47 ▼1.168.96 ▲7.3541.72 ▲1.66
Dashboard /wp-admin2,195 ▲185.59 ▼0.1291.27 ▲2.8937.59 ▼3.67
Posts /wp-admin/edit.php2,100 ▲31.94 ▼0.0539.45 ▲3.6137.04 ▲2.53
Add New Post /wp-admin/post-new.php1,526 ▼923.72 ▲5.59685.47 ▲72.2153.32 ▲1.54
Media Library /wp-admin/upload.php1,397 ▼34.18 ▼0.0298.48 ▼3.3342.75 ▼2.47

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/eve-dynamic-prerender/eve_prerender.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention: The official readme.txt is a good inspiration

eve-dynamic-prerender/eve_prerender.php 85% from 13 tests

The primary PHP file in "EVE Dynamic Prerender" version 4.0.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("eve-dynamic-prerender.php" instead of "eve_prerender.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 306 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected117 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11126117

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin