78% wpreadable

Code Review | WPReadable

WordPress plugin WPReadable scored78%from 54 tests.

About plugin

  • Plugin page: wpreadable
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.4
  • WordPress version: 6.3.1
  • First release: Sep 21, 2012
  • Latest release: Oct 29, 2012
  • Number of updates: 15
  • Update frequency: every 2.7 days
  • Top authors: ashfame (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /4,120 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

This is a short check of server-side resources used by WPReadable
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.01 ▼3.69
Dashboard /wp-admin3.32 ▼0.0350.21 ▼13.25
Posts /wp-admin/edit.php3.37 ▲0.0150.71 ▼1.47
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.08 ▼24.33
Media Library /wp-admin/upload.php3.24 ▲0.0138.36 ▲1.82

Server storage [IO: ▲0.64MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
wpreadable_ping_rescheduled
db_upgraded
can_compress_scripts
wpr_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WPReadable
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.80 ▲0.571.84 ▲0.1741.60 ▲1.46
Dashboard /wp-admin2,210 ▲184.85 ▼0.12110.12 ▼0.9838.92 ▼8.40
Posts /wp-admin/edit.php2,096 ▲72.04 ▼0.0139.25 ▲2.8733.77 ▼0.18
Add New Post /wp-admin/post-new.php1,536 ▲2223.19 ▲5.50668.35 ▲40.2947.45 ▼1.85
Media Library /wp-admin/upload.php1,389 ▲14.24 ▲0.03108.38 ▲6.6148.29 ▲4.60
WP Readable Options /wp-admin/wp-admin-functions.php260.440.1020.11

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 items
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/wpreadable/templates/footer.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_wpr_header() in wp-content/plugins/wpreadable/templates/single.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpreadable/lib/wp-admin-functions.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wpreadable/plugin.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_wpr_header() in wp-content/plugins/wpreadable/templates/home.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_wpr_header() in wp-content/plugins/wpreadable/templates/search.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/wpreadable/templates/header.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpreadable/lib/ajax-handler.php:6

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/wp-admin-functions.php
    • > Network (severe)
    wp-admin/wp-admin-functions.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% 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
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === wpreadable === )
The official readme.txt might help

wpreadable/plugin.php 92% from 13 tests

The main PHP file in "WPReadable" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpreadable.php" instead of "plugin.php")

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
Good job! No executable or dangerous file extensions detected2,501 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript43502641,376
PHP9160127686
CSS15958439

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
14 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
templates/images/logo.png3.43KB1.64KB▼ 52.08%
templates/images/search-indicator.png3.30KB2.18KB▼ 34.07%
templates/images/shadow.png1.00KB0.24KB▼ 76.48%
templates/images/facebook-icon.png6.13KB3.53KB▼ 42.50%
templates/images/comment-icon.png4.82KB3.06KB▼ 36.49%