Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼1.44ms] Passed 4 tests
A check of server-side resources used by xamoom
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 50.18 ▲4.98 |
Dashboard /wp-admin | 3.53 ▲0.23 | 53.88 ▲2.31 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 55.54 ▼1.53 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 97.97 ▼11.06 |
Media Library /wp-admin/upload.php | 3.46 ▲0.24 | 41.51 ▲4.51 |
xamoom /wp-admin/options-general.php?page=xamoom-settings | 3.42 | 40.72 |
Server storage [IO: ▲5.50MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 73 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
xamoom: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,000 ▲239 | 18.46 ▲4.06 | 56.56 ▲54.91 | 38.34 ▼3.30 |
Dashboard /wp-admin | 2,257 ▲80 | 6.36 ▲0.83 | 125.61 ▲26.85 | 42.44 ▲4.70 |
Posts /wp-admin/edit.php | 2,164 ▲64 | 3.20 ▲1.17 | 54.86 ▲14.06 | 37.32 ▼0.82 |
Add New Post /wp-admin/post-new.php | 6,209 ▲4,683 | 19.08 ▼4.63 | 931.89 ▲208.33 | 38.97 ▼19.22 |
Media Library /wp-admin/upload.php | 1,468 ▲68 | 5.65 ▲1.48 | 106.56 ▼7.08 | 43.29 ▼2.49 |
xamoom /wp-admin/options-general.php?page=xamoom-settings | 903 | 2.86 | 43.42 | 29.89 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/xamoom/tiny-mce-plugin/xamoom-tiny-mce.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/xamoom/includes/class-xamoom.php:267
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=xamoom-settings
- > Network (severe)
https://api.xamoom.net/consumer/contents/null - Failed to load resource: the server responded with a status of 403 ()
- > GET request to /wp-admin/options-general.php?page=xamoom-settings
- > Network (severe)
https://api.xamoom.net/consumer/contents?page%5Bsize%5D=1 - Failed to load resource: the server responded with a status of 403 ()
- > GET request to /wp-admin/options-general.php?page=xamoom-settings
- > Network (severe)
https://api.xamoom.net/consumer/contents?page%5Bsize%5D=10&filter%5Bname%5D=&{%22page[size]%22:%2210%22} - Failed to load resource: the server responded with a status of 403 ()
- > GET request to /wp-admin/options-general.php?page=xamoom-settings
- > Console-api (severe) in unknown
/wp-content/plugins/xamoom/block/js/block.js?ver=3.6.0 172:22 "Something went wrong." Object
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: location based service, nfc, qr, ibeacon, cms...
xamoom/xamoom.php Passed 13 tests
The principal PHP file in "xamoom" v. 3.6.0 is loaded by WordPress automatically on each request
56 characters long description:
This plugin allows you to sync xamoom pages to Wordpress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected12,966 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 5 | 0 | 12 | 10,011 |
PHP | 12 | 252 | 691 | 1,035 |
CSS | 8 | 132 | 88 | 1,012 |
JavaScript | 9 | 126 | 136 | 839 |
PO File | 1 | 10 | 10 | 59 |
Markdown | 1 | 4 | 0 | 10 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 16.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 123.00 |
Average method complexity | 3.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 93.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 2 | 4.35% |
▷ Public methods | 39 | 84.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 15.22% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
7 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/leaflet/images/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |
public/leaflet/images/marker-icon.png | 1.43KB | 1.55KB | 0.00% |
public/owl-carousel/assets/owl.video.play.png | 4.86KB | 2.74KB | ▼ 43.61% |
public/leaflet/images/layers-2x.png | 1.23KB | 1.67KB | 0.00% |
public/leaflet/images/marker-icon-2x.png | 2.41KB | 2.52KB | 0.00% |