53% read-more

Code Review | Read more By Adam

WordPress plugin Read more By Adam scored53%from 54 tests.

About plugin

  • Plugin page: read-more
  • Plugin version: 1.1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.8.1
  • WordPress version: 6.3.1
  • First release: Feb 11, 2017
  • Latest release: Nov 12, 2021
  • Number of updates: 125
  • Update frequency: every 13.9 days
  • Top authors: adamskaat (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

2,000+ active /36,497 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.83ms] Passed 4 tests

An overview of server-side resources used by Read more By Adam
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.64 ▼0.75
Dashboard /wp-admin3.34 ▼0.0144.29 ▼20.17
Posts /wp-admin/edit.php3.39 ▲0.0345.00 ▼0.20
Add New Post /wp-admin/post-new.php5.94 ▲0.0593.36 ▼10.43
Media Library /wp-admin/upload.php3.26 ▲0.0333.82 ▼3.98
Read more /wp-admin/admin.php?page=readMore3.2633.52
Add New button /wp-admin/admin.php?page=button3.2040.79
Add New /wp-admin/admin.php?page=addNew3.2529.92

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 49 new files
Database: 1 new table, 6 new options
New tables
wp_expm_maker
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Read more By Adam
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,858 ▲11213.28 ▼1.102.03 ▲0.4340.79 ▼3.59
Dashboard /wp-admin2,237 ▲494.81 ▼1.05110.57 ▼3.8440.63 ▼6.85
Posts /wp-admin/edit.php2,123 ▲341.99 ▲0.0141.86 ▲6.7737.58 ▲1.82
Add New Post /wp-admin/post-new.php1,558 ▲2423.13 ▼0.00675.56 ▲21.1564.50 ▲5.20
Media Library /wp-admin/upload.php1,422 ▲374.19 ▼0.0195.22 ▼13.5743.42 ▼3.58
Read more /wp-admin/admin.php?page=readMore8512.4645.3638.56
Add New button /wp-admin/admin.php?page=button1,3392.7255.3128.33
Add New /wp-admin/admin.php?page=addNew8242.4128.2722.13

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin cannot be uninstalled
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'ExpMaker' not found
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_expm_maker
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=button
    • > Notice in wp-content/plugins/read-more/classes/ReadMorePages.php+25
    Undefined index: readMoreId
    • > GET request to /wp-admin/admin.php?page=button
    • > Notice in wp-content/plugins/read-more/views/readMoreAddNewButton.php+3
    Undefined index: type

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/read-more/views/livePreview/buttonPreview.php
  • 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/read-more/views/readMoreAddNew.php:6
    • > PHP Notice
      Undefined variable: dataParams in wp-content/plugins/read-more/views/livePreview/buttonPreview.php on line 8
    • > PHP Fatal error
      Uncaught Error: Class 'arm\\ReadMore' not found in wp-content/plugins/read-more/classes/types/ButtonReadMore.php:4
    • > PHP Notice
      Undefined variable: dataObj in wp-content/plugins/read-more/views/readMoreAddNewButton.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/read-more/js/javascript.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/read-more/config/config.php:20
    • > PHP Warning
      Use of undefined constant YRM_PKG - assumed 'YRM_PKG' (this will throw an Error in a future version of PHP) in wp-content/plugins/read-more/views/readMoreAddNew.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function arm\\admin\\add_action() in wp-content/plugins/read-more/classes/admin/Actions.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/read-more/config/config.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/read-more/files/ReadMoreAdminPost.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: read more builder, read more, read more button, show more

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

The main PHP script in "Read more By Adam" version 1.1.8 is automatically included on every request by WordPress
66 characters long description:
With the read more plugin you can show or hide your hidden content

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin16,492 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
CSS41,8493410,185
JavaScript51,1962854,601
PHP28353581,706

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity7.00
▷ Minimum class complexity1.00
▷ Maximum class complexity45.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes23
▷ Abstract classes313.04%
▷ Concrete classes2086.96%
▷ Final classes00.00%
Methods115
▷ Static methods4135.65%
▷ Public methods10187.83%
▷ Protected methods00.00%
▷ Private methods1412.17%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants19.09%
▷ Class constants1090.91%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin