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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.64 ▼0.75 |
Dashboard /wp-admin | 3.34 ▼0.01 | 44.29 ▼20.17 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.00 ▼0.20 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 93.36 ▼10.43 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.82 ▼3.98 |
Read more /wp-admin/admin.php?page=readMore | 3.26 | 33.52 |
Add New button /wp-admin/admin.php?page=button | 3.20 | 40.79 |
Add New /wp-admin/admin.php?page=addNew | 3.25 | 29.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲112 | 13.28 ▼1.10 | 2.03 ▲0.43 | 40.79 ▼3.59 |
Dashboard /wp-admin | 2,237 ▲49 | 4.81 ▼1.05 | 110.57 ▼3.84 | 40.63 ▼6.85 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 1.99 ▲0.01 | 41.86 ▲6.77 | 37.58 ▲1.82 |
Add New Post /wp-admin/post-new.php | 1,558 ▲24 | 23.13 ▼0.00 | 675.56 ▲21.15 | 64.50 ▲5.20 |
Media Library /wp-admin/upload.php | 1,422 ▲37 | 4.19 ▼0.01 | 95.22 ▼13.57 | 43.42 ▼3.58 |
Read more /wp-admin/admin.php?page=readMore | 851 | 2.46 | 45.36 | 38.56 |
Add New button /wp-admin/admin.php?page=button | 1,339 | 2.72 | 55.31 | 28.33 |
Add New /wp-admin/admin.php?page=addNew | 824 | 2.41 | 28.27 | 22.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 1,849 | 34 | 10,185 |
JavaScript | 5 | 1,196 | 285 | 4,601 |
PHP | 28 | 353 | 58 | 1,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 code | 0.21 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 3 | 13.04% |
▷ Concrete classes | 20 | 86.96% |
▷ Final classes | 0 | 0.00% |
Methods | 115 | |
▷ Static methods | 41 | 35.65% |
▷ Public methods | 101 | 87.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 12.17% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 1 | 9.09% |
▷ Class constants | 10 | 90.91% |
▷ Public constants | 10 | 100.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