Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲1.22MB] [CPU: ▲1.15ms] Passed 4 tests
Server-side resources used by Annonces
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.80 ▲1.34 | 60.25 ▲15.79 |
Dashboard /wp-admin | 4.31 ▲0.97 | 38.38 ▼26.95 |
Posts /wp-admin/edit.php | 4.69 ▲1.33 | 68.61 ▲17.69 |
Add New Post /wp-admin/post-new.php | 7.19 ▲1.30 | 108.56 ▼1.95 |
Media Library /wp-admin/upload.php | 4.51 ▲1.28 | 58.11 ▲22.42 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 4.68 | 55.01 |
Announces /wp-admin/edit.php?post_type=announce | 4.60 | 58.03 |
Announce taxonomies /wp-admin/edit-tags.php?taxonomy=announce_taxonomy | 4.51 | 53.94 |
Labels /wp-admin/edit.php?post_type=label | 4.60 | 56.12 |
Server storage [IO: ▲7.22MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 433 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Annonces
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,592 ▼154 | 18.34 ▲4.11 | 32.61 ▲30.78 | 44.31 ▼2.29 |
Dashboard /wp-admin | 1,839 ▼367 | 7.67 ▲2.75 | 112.64 ▲11.71 | 50.95 ▲8.03 |
Posts /wp-admin/edit.php | 2,194 ▲94 | 4.15 ▲2.13 | 56.44 ▲15.69 | 41.89 ▲6.69 |
Add New Post /wp-admin/post-new.php | 6,527 ▲4,996 | 26.25 ▲2.93 | 993.08 ▲368.62 | 39.92 ▼27.89 |
Media Library /wp-admin/upload.php | 1,493 ▲93 | 7.20 ▲3.03 | 115.07 ▲20.20 | 52.74 ▲9.23 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 1,026 | 4.39 | 40.74 | 34.95 |
Announces /wp-admin/edit.php?post_type=announce | 1,156 | 4.16 | 46.53 | 31.82 |
Announce taxonomies /wp-admin/edit-tags.php?taxonomy=announce_taxonomy | 1,367 | 4.52 | 39.60 | 37.99 |
Labels /wp-admin/edit.php?post_type=label | 1,158 | 4.18 | 47.12 | 36.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/annonces/core/external/eo-framework/tests/bootstrap.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'eoxia\\Singleton_Util' not found in wp-content/plugins/annonces/core/class/class-tgm-plugin-activation.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function annonces\\plugin_dir_path() in wp-content/plugins/annonces/annonces.php:19
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/annonces/core/external/eo-framework/tests/test-post-class.php:11
- > 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)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
There were no plugin tags found
annonces/annonces.php 92% from 13 tests
The primary PHP file in "Annonces" version 2.1.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder was not found ("/language")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin47,349 lines of code in 318 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 21 | 5,085 | 171 | 14,729 |
Sass | 127 | 467 | 179 | 7,390 |
SVG | 4 | 0 | 16 | 7,004 |
JSON | 20 | 1 | 0 | 5,843 |
PHP | 85 | 1,547 | 4,685 | 5,626 |
JavaScript | 31 | 752 | 2,427 | 4,333 |
HTML | 18 | 276 | 35 | 1,877 |
PO File | 3 | 80 | 97 | 244 |
Markdown | 5 | 113 | 0 | 205 |
YAML | 1 | 7 | 0 | 56 |
XML | 3 | 4 | 2 | 42 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 13.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 3.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 61 | |
▷ Abstract classes | 1 | 1.64% |
▷ Concrete classes | 60 | 98.36% |
▷ Final classes | 0 | 0.00% |
Methods | 293 | |
▷ Static methods | 16 | 5.46% |
▷ Public methods | 234 | 79.86% |
▷ Protected methods | 51 | 17.41% |
▷ Private methods | 8 | 2.73% |
Functions | 15 | |
▷ Named functions | 6 | 40.00% |
▷ Anonymous functions | 9 | 60.00% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
modules/annonce/asset/img/pin-cyan.png | 4.29KB | 0.65KB | ▼ 84.85% |
core/asset/image/structure_plugin.PNG | 23.27KB | 9.88KB | ▼ 57.55% |
modules/annonce/asset/img/pin-red.png | 4.28KB | 0.66KB | ▼ 84.66% |
modules/annonce/asset/img/pin-black.png | 4.23KB | 0.62KB | ▼ 85.40% |
modules/annonce/asset/img/pin-yellow.png | 4.27KB | 0.66KB | ▼ 84.66% |