Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/adsense-for-authorsafa/adsenseShare.php+149
Undefined variable: user_id
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.40ms] Passed 4 tests
Server-side resources used by Adsense For Authors
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.75 ▲0.69 |
Dashboard /wp-admin | 3.36 ▲0.06 | 48.00 ▼0.75 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 42.82 ▼2.05 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 81.19 ▼14.58 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 32.21 ▼0.21 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_afawidget |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
afa_option_name[adpub_id] |
widget_recent-posts |
afa_option_name[adposition] |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Adsense For Authors
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.53 ▲0.18 | 1.69 ▼0.15 | 47.11 ▲6.63 |
Dashboard /wp-admin | 2,214 ▲33 | 5.62 ▼0.11 | 82.56 ▼14.45 | 36.11 ▼7.97 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.99 ▲0.04 | 33.88 ▼1.73 | 35.31 ▼0.23 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 23.15 ▲0.19 | 691.51 ▲4.64 | 58.37 ▲3.74 |
Media Library /wp-admin/upload.php | 1,419 ▲16 | 4.25 ▲0.08 | 98.70 ▼0.06 | 42.72 ▼5.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 9 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_afawidget
- theysaidso_admin_options
- afa_option_name[adpub_id]
- widget_theysaidso_widget
- widget_recent-comments
- afa_option_name[adposition]
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/adsense-for-authorsafa/adsenseShare.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/adsense-for-authorsafa/widgetad.php:2
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: plugin, adense, wordpress, guest bloggers, revenue share...
adsense-for-authorsafa/adsenseShare.php 92% from 13 tests
The main file in "Adsense For Authors" v. 1.0 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 ("adsense-for-authorsafa.php" instead of "adsenseShare.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin240 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 1 | 45 | 179 |
CSS | 1 | 5 | 0 | 61 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 16 | |
▷ Named functions | 16 | 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