Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼276.01ms] Passed 4 tests
A check of server-side resources used by Add Adsense
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 34.79 ▲14.09 |
Dashboard /wp-admin | 3.06 ▲0.01 | 42.48 ▲0.93 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 37.87 ▼1.23 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 93.89 ▼1,097.07 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 34.50 ▼6.68 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Add Adsense
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,699 ▲117 | 16.26 ▲0.78 | 8.21 ▲0.41 | 47.03 ▼1.96 |
Dashboard /wp-admin | 2,945 ▲92 | 5.87 ▲0.05 | 133.13 ▲4.57 | 138.37 ▲29.56 |
Posts /wp-admin/edit.php | 2,746 ▲40 | 2.67 ▼0.02 | 66.38 ▼1.83 | 92.31 ▲9.37 |
Add New Post /wp-admin/post-new.php | 1,669 ▼182 | 18.82 ▲1.04 | 371.74 ▼2.93 | 104.70 ▼10.11 |
Media Library /wp-admin/upload.php | 1,809 ▲34 | 5.01 ▲0.01 | 127.75 ▼24.68 | 140.09 ▲24.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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
- 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/add-adsense/add-adsense.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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 need to be fixed:
- Screenshots: Please add an image for screenshot #1 (Admin Panel view of submitted form data.)
add-adsense/add-adsense.php Passed 13 tests
The main file in "Add Adsense" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
76 characters long description:
Add Adsense WordPress plugin allows you to add adsense fields in your theme.
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
Everything looks great! No dangerous files found in this plugin178 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 40 | 12 | 143 |
PO File | 1 | 8 | 9 | 35 |
PHP code Passed 2 tests
This is a very shot 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.04 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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 1 test
Image compression Passed 1 test
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 11.25KB | 4.39KB | ▼ 60.99% |
screenshot-1.png | 10.75KB | 4.28KB | ▼ 60.21% |
images/icon.png | 1.58KB | 1.43KB | ▼ 9.69% |