Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼2.86ms] Passed 4 tests
An overview of server-side resources used by Geoedge
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 35.44 ▼0.44 |
Dashboard /wp-admin | 3.36 ▲0.02 | 43.26 ▼12.31 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 50.28 ▲6.91 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 95.90 ▼0.59 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.52 ▲1.92 |
GeoEdge Ad Security /wp-admin/options-general.php?page=geoedge | 3.23 | 29.69 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
geoedge_settings |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Geoedge
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 13.45 ▼1.30 | 1.86 ▲0.27 | 41.43 ▲2.55 |
Dashboard /wp-admin | 2,215 ▲26 | 5.80 ▲0.81 | 94.59 ▼26.59 | 39.88 ▼5.45 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.04 ▼0.02 | 43.49 ▲7.81 | 38.70 ▲6.61 |
Add New Post /wp-admin/post-new.php | 1,534 ▲15 | 18.27 ▼4.80 | 592.82 ▼81.80 | 53.43 ▲3.97 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.29 ▲0.09 | 98.27 ▲0.00 | 44.84 ▲1.45 |
GeoEdge Ad Security /wp-admin/options-general.php?page=geoedge | 936 | 2.10 | 26.43 | 52.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=geoedge
- > Notice in wp-content/plugins/geoedge-ad-security/admin/class-admin.php+47
Undefined index: api-key
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 take a closer look at 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 plugin_dir_url() in wp-content/plugins/geoedge-ad-security/admin/partials/view.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in geoedge-ad-security/assets to your readme.txt
geoedge-ad-security/geoedge.php 69% from 13 tests
"Geoedge" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("geoedge-ad-security.php" instead of "geoedge.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 165 characters long)
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 plugin522 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 107 | 131 | 321 |
CSS | 1 | 40 | 3 | 163 |
JavaScript | 1 | 20 | 5 | 38 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 3.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 2 | 9.09% |
▷ Public methods | 17 | 77.27% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 22.73% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/geoedge-logo.png | 41.06KB | 21.23KB | ▼ 48.31% |