83% read-more-buddy

Code Review | Read More Buddy

WordPress plugin Read More Buddy scored 83% from 54 tests.

About plugin

  • Plugin page: read-more-buddy
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.1.1
  • WordPress version: 6.3.1
  • First release: Apr 17, 2019
  • Latest release: Apr 17, 2019
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: steveo619 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 1,510 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.12MB] [CPU: ▼3.73ms] Passed 4 tests

An overview of server-side resources used by Read More Buddy
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1138.38 ▼1.71
Dashboard /wp-admin3.43 ▲0.1242.70 ▼5.95
Posts /wp-admin/edit.php3.54 ▲0.1844.04 ▼3.38
Add New Post /wp-admin/post-new.php6.02 ▲0.1382.96 ▼3.87
Media Library /wp-admin/upload.php3.35 ▲0.1135.51 ▲3.10

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 40 new files
Database: no new tables, 16 new options
New WordPress options
theysaidso_admin_options
read_mb_button_hover
widget_recent-posts
read_mb_text_hover
read_mb_read_more_text
db_upgraded
read_mb_width
read_mb_font_size
read_mb_display_position
read_mb_text_color
...

Browser metrics Passed 4 tests

Read More Buddy: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,923 ▲18813.68 ▼0.755.18 ▲3.3340.76 ▼10.08
Dashboard /wp-admin2,240 ▲555.09 ▲0.24100.06 ▼18.8339.22 ▼11.22
Posts /wp-admin/edit.php2,107 ▲182.30 ▲0.1934.92 ▼1.9031.50 ▼1.77
Add New Post /wp-admin/post-new.php1,547 ▲3321.92 ▲4.41651.51 ▼30.4237.12 ▼15.28
Media Library /wp-admin/upload.php1,420 ▲354.27 ▼0.0396.05 ▼10.7145.86 ▲0.40

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 items
  • 7× PHP files output text when accessed directly:
    • > /wp-content/plugins/read-more-buddy/includes/._class-read_mb.php
    • > /wp-content/plugins/read-more-buddy/includes/._class-read_mb-loader.php
    • > /wp-content/plugins/read-more-buddy/admin/._class-read_mb-admin.php
    • > /wp-content/plugins/read-more-buddy/public/partials/read_mb-public-display.php
    • > /wp-content/plugins/read-more-buddy/includes/._class-read_mb-deactivator.php
    • > /wp-content/plugins/read-more-buddy/includes/._class-read_mb-uninstall.php
    • > /wp-content/plugins/read-more-buddy/includes/._class-read_mb-activator.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: read less, jquery, read more, read

read-more-buddy/read_mb.php 77% from 13 tests

"Read More Buddy" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("read-more-buddy.php" instead of "read_mb.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected559 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP12232605471
XML100055
JavaScript3152833
CSS2080

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity3.43
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.47
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods36
▷ Static methods25.56%
▷ Public methods3186.11%
▷ Protected methods00.00%
▷ Private methods513.89%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/partials/donate-paypal-main.png4.07KB4.05KB0.46%
admin/images/donate-paypal-main.png4.07KB4.05KB0.46%