79% read-more-wp

Code Review | Read More WP

WordPress plugin Read More WP scored79%from 54 tests.

About plugin

  • Plugin page: read-more-wp
  • Plugin version: 1.1.5
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Nov 2, 2023
  • Latest release: Nov 2, 2023
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: BoltonStudios (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /16 total downloads

Benchmarks

Plugin footprint 64% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲5.38MB] [CPU: ▲18.67ms] 50% from 4 tests

A check of server-side resources used by Read More WP
Please fix the following
  • CPU: Total CPU usage must kept under 500.00ms (currently 1,978.46ms on /wp-admin/options-general.php?page=read-more-wp)
  • Extra RAM: Extra memory usage must be kept under 5MB (currently 5.38MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.22 ▲5.7563.98 ▲22.06
Dashboard /wp-admin9.24 ▲5.8974.06 ▲10.90
Posts /wp-admin/edit.php9.24 ▲5.8883.78 ▲33.98
Add New Post /wp-admin/post-new.php9.87 ▲3.98111.51 ▲10.90
Media Library /wp-admin/upload.php9.24 ▲6.0168.12 ▲30.83
Read More WP /wp-admin/options-general.php?page=read-more-wp9.241,978.46
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius9.2455.84

Server storage [IO: ▲3.13MB] [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: 202 new files
Database: no new tables, 9 new options
New WordPress options
fs_accounts
fs_debug_mode
fs_active_plugins
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Read More WP
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲15113.43 ▼1.167.69 ▲6.0729.86 ▼7.94
Dashboard /wp-admin2,220 ▲405.58 ▼0.0393.74 ▼4.0643.15 ▲1.46
Posts /wp-admin/edit.php2,126 ▲261.99 ▲0.0136.32 ▼3.7233.19 ▼3.87
Add New Post /wp-admin/post-new.php1,539 ▲1322.98 ▼0.21762.81 ▲104.1062.54 ▲7.33
Media Library /wp-admin/upload.php1,425 ▲254.22 ▲0.08100.25 ▼11.3145.60 ▲0.40
Read More WP /wp-admin/options-general.php?page=read-more-wp9881.6926.1362.72
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius1,0771.6623.9524.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/read-more-wp/freemius/includes/class-freemius.php+8515
    Undefined property: stdClass::$plugins
  • Zombie WordPress options detected upon uninstall: 9 options
    • db_upgraded
    • fs_debug_mode
    • widget_recent-posts
    • fs_accounts
    • can_compress_scripts
    • widget_recent-comments
    • fs_active_plugins
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: toggle text, read more, show more, ellipsis

read-more-wp/read-more-wp.php Passed 13 tests

The main file in "Read More WP" v. 1.1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
73 characters long description:
Create excerpts and hide text with an elegant toggle button to show more.

Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected33,871 lines of code in 151 files:
LanguageFilesBlank linesComment linesLines of code
PHP1288,16218,03333,542
JavaScript557132236
CSS150044
LESS20033
XML13016

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Please tend to the following items
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity80.57
▷ Minimum class complexity1.00
▷ Maximum class complexity3,088.00
Average method complexity4.47
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes56
▷ Abstract classes23.57%
▷ Concrete classes5496.43%
▷ Final classes00.00%
Methods1,313
▷ Static methods20015.23%
▷ Public methods91869.92%
▷ Protected methods171.29%
▷ Private methods37828.79%
Functions102
▷ Named functions102100.00%
▷ Anonymous functions00.00%
Constants147
▷ Global constants10068.03%
▷ Class constants4731.97%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/read-more-wp.png8.12KB2.96KB▼ 63.57%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%