Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▲2.74ms] Passed 4 tests
Analyzing server-side resources used by Traditores In-One-Year
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 47.69 ▲3.60 |
Dashboard /wp-admin | 3.41 ▲0.11 | 55.68 ▼0.44 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 56.15 ▲4.76 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 103.37 ▲8.58 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 38.67 ▲3.04 |
Traditores IOY /wp-admin/options-general.php?page=trad-ioy | 3.31 | 36.90 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Traditores In-One-Year: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲42 | 13.31 ▲0.20 | 1.92 ▼0.10 | 45.22 ▼0.69 |
Dashboard /wp-admin | 2,212 ▲6 | 5.86 ▼0.05 | 109.21 ▼2.93 | 38.70 ▼3.80 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.00 ▼0.01 | 39.75 ▲4.34 | 35.47 ▲1.40 |
Add New Post /wp-admin/post-new.php | 6,469 ▲4,936 | 23.07 ▼0.15 | 857.57 ▲234.43 | 52.76 ▲4.24 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.20 ▼0.02 | 96.84 ▼10.26 | 40.77 ▼6.41 |
Traditores IOY /wp-admin/options-general.php?page=trad-ioy | 1,639 | 2.32 | 48.96 | 32.28 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/traditores-in-one-year/uninstall.php+12
Undefined variable: trad_ioy_def_settings
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/traditores-in-one-year/trad-ioy.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/traditores-in-one-year/uninstall.php:10
- > PHP Fatal error
Uncaught Error: Class 'trad_ioy' not found in wp-content/plugins/traditores-in-one-year/inc/trad_ioy_admin.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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 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
3 plugin tags: free, content, simple
traditores-in-one-year/trad-ioy.php 92% from 13 tests
Analyzing the main PHP file in "Traditores In-One-Year" version 0.3
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("traditores-in-one-year.php" instead of "trad-ioy.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,619 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 5 | 1 | 0 | 818 |
PHP | 5 | 91 | 80 | 601 |
JavaScript | 3 | 52 | 104 | 186 |
CSS | 2 | 3 | 0 | 14 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 33.50 |
▷ Minimum class complexity | 31.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 3.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 92.86% |
▷ Protected methods | 1 | 3.57% |
▷ Private methods | 1 | 3.57% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected