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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.50ms] Passed 4 tests
Analyzing server-side resources used by Specia Companion
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 35.62 ▼10.16 |
Dashboard /wp-admin | 3.33 ▲0.02 | 46.93 ▼7.73 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.90 ▲3.68 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 92.13 ▼1.55 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 37.88 ▲1.45 |
Server storage [IO: ▲2.62MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Specia Companion
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.23 ▲0.05 | 1.51 ▼0.13 | 37.91 ▼6.66 |
Dashboard /wp-admin | 2,195 ▲15 | 5.60 ▼0.04 | 93.83 ▼4.45 | 41.43 ▼4.48 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.02 ▲0.02 | 38.42 ▼1.01 | 37.54 ▲4.72 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.00 ▼0.12 | 669.52 ▼9.99 | 59.99 ▲7.45 |
Media Library /wp-admin/upload.php | 1,403 ▲9 | 4.20 ▲0.04 | 103.34 ▲8.16 | 46.08 ▲5.31 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | 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
The following issues need your attention
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/specia-companion/inc/specia/default-pages/upload-media.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_insert_post() in wp-content/plugins/specia-companion/inc/specia/default-pages/home-page.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_template() in wp-content/plugins/specia-companion/specia-companion.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function update_option() in wp-content/plugins/specia-companion/inc/specia/default-widgets/default-widget.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/specia-companion/inc/specia/default-pages/default-pages.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function set_theme_mod() in wp-content/plugins/specia-companion/inc/specia/specia.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Requires at least: Version format is invalid
specia-companion/specia-companion.php 92% from 13 tests
The primary PHP file in "Specia Companion" version 3.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 283 characters long)
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
There were no executable files found in this plugin2,160 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 235 | 57 | 1,514 |
PHP | 8 | 97 | 76 | 581 |
JavaScript | 1 | 20 | 42 | 65 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 7 | |
▷ Static methods | 2 | 28.57% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
27 PNG files occupy 1.83MB with 0.74MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/specia/images/logo/avira.png | 8.96KB | 4.65KB | ▼ 48.12% |
inc/specia/images/logo/herpress.png | 5.50KB | 3.63KB | ▼ 33.91% |
inc/specia/images/logo/cartable.png | 3.37KB | 2.79KB | ▼ 16.97% |
inc/specia/images/logo/specia.png | 9.97KB | 4.29KB | ▼ 57.01% |
inc/specia/images/logo/scelar.png | 2.38KB | 1.29KB | ▼ 46.07% |