84% readmore-readless

Code Review | ReadMore ReadLess

WordPress plugin ReadMore ReadLess scored84%from 54 tests.

About plugin

  • Plugin page: readmore-readless
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.2
  • WordPress version: 6.3.1
  • First release: Sep 3, 2014
  • Latest release: Sep 3, 2014
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: brijeshmkt (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /7,249 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.17MB] [CPU: ▼13.16ms] Passed 4 tests

An overview of server-side resources used by ReadMore ReadLess
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0134.16 ▼9.72
Dashboard /wp-admin3.32 ▲0.0251.80 ▼4.92
Posts /wp-admin/edit.php3.37 ▲0.0150.47 ▲2.03
Add New Post /wp-admin/post-new.php5.15 ▼0.7467.64 ▼40.03
Media Library /wp-admin/upload.php3.24 ▲0.0140.46 ▲3.70

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for ReadMore ReadLess
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.73 ▲0.362.07 ▲0.1238.53 ▼4.86
Dashboard /wp-admin2,200 ▲295.52 ▼0.0691.85 ▼5.6740.79 ▲1.85
Posts /wp-admin/edit.php2,105 ▲51.99 ▲0.0135.81 ▲0.4435.47 ▼1.87
Add New Post /wp-admin/post-new.php1,528 ▲223.78 ▲0.08621.13 ▼40.0750.19 ▼1.19
Media Library /wp-admin/upload.php1,402 ▲24.21 ▲0.01101.48 ▼8.2243.13 ▼2.92

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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/readmore-readless/readmore-readless.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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:
  • Plugin Name: You should set the name of your plugin on the first line ( === readmore-readless === )
  • Screenshots: These screenshots do not have images: #1 (Select the check box to show readmore link on your page and give the width to be shown), #2 (Click to readmore. Content opens with smooth animation.)
You can look at the official readme.txt

readmore-readless/readmore-readless.php Passed 13 tests

This is the main PHP file of "ReadMore ReadLess" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
89 characters long description:
Add Readmore link to your pages. Click on read more will expand content on the same page

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected65 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1271558
JavaScript1007

PHP code Passed 2 tests

This is a very shot 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.45
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.19MB with 0.10MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png136.42KB63.82KB▼ 53.22%
screenshot-2.png58.65KB26.81KB▼ 54.29%