10% readers-wall

Code Review | Readers Wall

WordPress plugin Readers Wall scored10%from 54 tests.

About plugin

  • Plugin page: readers-wall
  • Plugin version: 1.3.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6
  • WordPress version: 6.3.1
  • First release: Dec 27, 2012
  • Latest release: Aug 17, 2016
  • Number of updates: 26
  • Update frequency: every 51.2 days
  • Top authors: leniy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,449 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function add_shortcode was called incorrectly. Invalid shortcode name: Empty name given. Please see Debugging in WordPress for more information. (This message was added in version 4.4.0.)

Server metrics [RAM: ▲0.03MB] [CPU: ▼9.11ms] Passed 4 tests

An overview of server-side resources used by Readers Wall
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.20 ▼8.48
Dashboard /wp-admin3.35 ▲0.0047.44 ▼12.16
Posts /wp-admin/edit.php3.40 ▲0.0448.40 ▼2.00
Add New Post /wp-admin/post-new.php5.93 ▲0.0486.95 ▼13.79
Media Library /wp-admin/upload.php3.27 ▲0.0434.13 ▲0.36
About /wp-admin/admin.php?page=leniy-plugins3.2430.55
Readers Wall读者墙 /wp-admin/admin.php?page=leniy-plugins/RW.php3.2129.88

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 12 new options
New WordPress options
db_upgraded
qw_RW_shownumber
widget_recent-posts
widget_theysaidso_widget
qw_RW_days
can_compress_scripts
qw_RW_css
qw_RW_commentatleast
qw_RW_shortcode
qw_RW_manualcss
...

Browser metrics Passed 4 tests

A check of browser resources used by Readers Wall
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲8013.58 ▼0.621.66 ▼0.5841.58 ▼1.95
Dashboard /wp-admin2,235 ▲475.82 ▼0.0899.93 ▼5.3290.28 ▲50.44
Posts /wp-admin/edit.php2,118 ▲322.00 ▼0.0139.75 ▲3.7339.50 ▲0.51
Add New Post /wp-admin/post-new.php1,545 ▲2618.24 ▼5.05684.84 ▲1.6569.79 ▲1.42
Media Library /wp-admin/upload.php1,417 ▲324.10 ▼0.0996.82 ▼10.1681.78 ▲33.87
About /wp-admin/admin.php?page=leniy-plugins8951.8625.1860.02
Readers Wall读者墙 /wp-admin/admin.php?page=leniy-plugins/RW.php1,0211.9226.2465.88

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=leniy-plugins/RW.php
    • > Notice in wp-content/plugins/readers-wall/readers-wall.php+63
    Undefined index: qw_RW_btn
    • > GET request to /wp-admin/admin.php?page=leniy-plugins/RW.php
    • > Notice in wp-content/plugins/readers-wall/readers-wall.php+71
    Undefined index: qw_RW_resetbtn
    • > GET request to /wp-admin/admin.php?page=leniy-plugins/RW.php
    • > Notice in wp-content/plugins/readers-wall/readers-wall.php+75
    Undefined index: qw_RW_savebtn

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
Please fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/readers-wall/readers-wall.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/readers-wall/inc/leniy_admin_menu.php:23

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=leniy-plugins
    • > Network (severe)
    https://blog.leniy.org/project/wordpress - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/admin.php?page=leniy-plugins/RW.php
    • > Network (severe)
    https://blog.leniy.org/readers-wall.html - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #1 (screenshot-1.jpg)
You can take inspiration from this readme.txt

readers-wall/readers-wall.php Passed 13 tests

The main PHP file in "Readers Wall" ver. 1.3.7 adds more information about the plugin and also serves as the entry point for this plugin
33 characters long description:
高度自定制性能的读者墙

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 plugin392 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP42431236
CSS235156

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions8
▷ Named functions8100.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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/leniy.png1.36KB1.79KB0.00%
inc/leniy-ico.png0.45KB0.61KB0.00%
resource/default.png9.56KB4.80KB▼ 49.77%