Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▲0.05ms] Passed 4 tests
Analyzing server-side resources used by Revenue Share for Authors (RSP for Wordpress)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 45.73 ▲3.52 |
Dashboard /wp-admin | 3.40 ▲0.09 | 54.55 ▲4.46 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 48.22 ▼8.98 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.09 | 98.39 ▲5.71 |
Media Library /wp-admin/upload.php | 3.33 ▲0.09 | 40.20 ▲1.22 |
RSP Menu /wp-admin/options-general.php?page=RSP_plugin | 3.27 | 33.79 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_rspwidget |
RSP_options[radio_option1] |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
RSP_options[RSP_text_string] |
RSP_options[adshare_percentage] |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Revenue Share for Authors (RSP for Wordpress)
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲15 | 13.21 ▼0.02 | 5.06 ▲3.48 | 43.22 ▼0.95 |
Dashboard /wp-admin | 2,207 ▲1 | 4.84 ▼1.05 | 107.03 ▼1.80 | 41.86 ▼3.25 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.05 ▲0.06 | 37.51 ▼4.07 | 33.27 ▼0.69 |
Add New Post /wp-admin/post-new.php | 1,536 ▼0 | 23.36 ▼0.02 | 610.10 ▼75.40 | 56.23 ▼3.26 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.21 ▲0.03 | 96.37 ▼7.48 | 41.94 ▼1.59 |
RSP Menu /wp-admin/options-general.php?page=RSP_plugin | 981 | 2.02 | 24.17 | 34.67 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 10 options
- can_compress_scripts
- db_upgraded
- widget_rspwidget
- theysaidso_admin_options
- RSP_options[radio_option1]
- RSP_options[RSP_text_string]
- widget_recent-posts
- widget_theysaidso_widget
- RSP_options[adshare_percentage]
- widget_recent-comments
Smoke tests 50% 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)
Almost there, just fix the following server-side errors
- 14 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=RSP_plugin
- > Notice in wp-content/plugins/revenue-share-plugin-for-authorsrsp/rShareAuthors.php+49
Trying to access array offset on value of type bool
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
Please fix the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/revenue-share-plugin-for-authorsrsp/widgetad.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/revenue-share-plugin-for-authorsrsp/rShareAuthors.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
Attributes that require attention:
- Contributors: There were no tags found
- Contributors: Plugin contributors not specified
revenue-share-plugin-for-authorsrsp/rShareAuthors.php 92% from 13 tests
The main file in "Revenue Share for Authors (RSP for Wordpress)" v. 2.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("revenue-share-plugin-for-authorsrsp.php" instead of "rShareAuthors.php")
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
No dangerous file extensions were detected524 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 0 | 15 | 456 |
CSS | 1 | 5 | 0 | 68 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 26 | |
▷ Named functions | 26 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected