84% end-page-slide-box

Code Review | End Page Slide Box

WordPress plugin End Page Slide Box scored84%from 54 tests.

About plugin

  • Plugin page: end-page-slide-box
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.4-4.9
  • WordPress version: 6.3.1
  • First release: Oct 15, 2011
  • Latest release: Mar 24, 2018
  • Number of updates: 11
  • Update frequency: every 213.8 days
  • Top authors: graphicedit (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active /5,618 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼12.38ms] Passed 4 tests

Analyzing server-side resources used by End Page Slide Box
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.91 ▼4.48
Dashboard /wp-admin3.31 ▲0.0045.64 ▼5.54
Posts /wp-admin/edit.php3.36 ▲0.0043.65 ▼9.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.71 ▼30.26
Media Library /wp-admin/upload.php3.23 ▲0.0036.46 ▲2.71

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for End Page Slide Box
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲14513.74 ▼0.675.17 ▲3.5038.53 ▼4.50
Dashboard /wp-admin2,210 ▲194.88 ▼0.04112.72 ▲5.3542.89 ▲0.55
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0135.58 ▼7.3131.71 ▼5.69
Add New Post /wp-admin/post-new.php1,518 ▲423.16 ▲5.49686.14 ▼1.4458.81 ▲8.08
Media Library /wp-admin/upload.php1,389 ▲44.21 ▲0.05101.62 ▲1.3342.32 ▼0.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

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)
Even though no errors were found, 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
The following issues need your attention
  • 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/end-page-slide-box/end-page-slide-box.php:51

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (Place the shortcode.), #2 (and see the result.)
You can take inspiration from this readme.txt

end-page-slide-box/end-page-slide-box.php Passed 13 tests

The entry point to "End Page Slide Box" version 1.0.1 is a PHP file that has certain tags in its header comment area
18 characters long description:
End Page Slide Box

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected73 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS11045
JavaScript16015
PHP1192213

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.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
2 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png17.07KB7.73KB▼ 54.70%
screenshot-1.png101.14KB60.72KB▼ 39.96%