Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.49ms] Passed 4 tests
A check of server-side resources used by Nearby Now Reviews and Audio Testimonials
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 41.64 ▲1.81 |
Dashboard /wp-admin | 3.40 ▲0.06 | 46.09 ▼12.56 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 43.93 ▼0.33 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 81.78 ▼5.49 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 36.11 ▲0.41 |
Nearby Now /wp-admin/options-general.php?page=NearbyNow | 3.26 | 29.47 |
Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Nearby Now Reviews and Audio Testimonials
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.59 ▼0.79 | 1.63 ▼0.66 | 43.71 ▼2.11 |
Dashboard /wp-admin | 2,210 ▲22 | 5.77 ▼0.05 | 99.08 ▼1.62 | 39.85 ▼1.66 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.05 ▲0.02 | 34.13 ▼0.15 | 34.66 ▼5.25 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.51 ▲0.42 | 588.21 ▼48.75 | 52.69 ▼16.28 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.16 ▼0.03 | 94.34 ▼9.26 | 42.20 ▼0.48 |
Nearby Now /wp-admin/options-general.php?page=NearbyNow | 811 | 2.02 | 24.58 | 27.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
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
- > GET request to /wp-admin/options-general.php?page=NearbyNow
- > Notice in wp-content/plugins/nearby-now/main.php+591
Trying to access array offset on value of type bool
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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/nearby-now/main.php:17
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== nearby-now ===
)
nearby-now/main.php 92% from 13 tests
The main PHP script in "Nearby Now Reviews and Audio Testimonials" version 2.0.1 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("nearby-now.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected497 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 88 | 31 | 497 |
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.33 |
Average class complexity | 77.00 |
▷ Minimum class complexity | 77.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 5.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.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 | 18 | |
▷ Static methods | 18 | 100.00% |
▷ Public methods | 18 | 100.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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.58MB with 0.40MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 292.46KB | 98.53KB | ▼ 66.31% |
screenshot-2.png | 303.04KB | 91.32KB | ▼ 69.87% |