Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼2.12ms] Passed 4 tests
This is a short check of server-side resources used by Content Visibility Geolocation
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 195.04 ▲155.48 |
Dashboard /wp-admin | 3.38 ▲0.07 | 46.29 ▼0.45 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 47.67 ▼2.85 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 84.34 ▼8.54 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.48 ▲3.38 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Content Visibility Geolocation
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲80 | 13.19 ▼1.06 | 2.06 ▲0.32 | 47.54 ▼2.39 |
Dashboard /wp-admin | 2,203 ▲18 | 5.84 ▲0.95 | 96.36 ▼5.51 | 35.90 ▼8.60 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 2.02 ▼0.02 | 34.23 ▼4.98 | 32.16 ▼1.99 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 21.04 ▲3.49 | 713.88 ▲46.65 | 53.69 ▲7.36 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.20 ▼0.06 | 103.25 ▲4.13 | 43.39 ▼2.97 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
6 plugin tags: geolocation, visibility, contentvisibility, location, content...
content-visibility-geolocation/content-visibility-geolocation.php Passed 13 tests
"Content Visibility Geolocation" version 0.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
89 characters long description:
[Content Visibility Add-On] Show or hide your blocks to visitors from specific countries.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected2,877 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 187 | 452 | 1,751 |
JavaScript | 1 | 226 | 236 | 1,126 |
CSS | 2 | 4 | 2 | 0 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 52.00 |
▷ Minimum class complexity | 52.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 35 | |
▷ Static methods | 12 | 34.29% |
▷ Public methods | 28 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 20.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.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