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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼1.80ms] Passed 4 tests
Server-side resources used by WP Company
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.75 ▼5.36 |
Dashboard /wp-admin | 3.42 ▲0.12 | 48.17 ▼2.50 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 52.32 ▲6.23 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 90.87 ▼3.35 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 40.01 ▲4.03 |
Company Details /wp-admin/options-general.php?page=wp-company | 3.32 | 35.22 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Company
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲152 | 13.95 ▼0.44 | 7.53 ▲5.24 | 38.29 ▼5.84 |
Dashboard /wp-admin | 2,213 ▲25 | 5.82 ▲0.96 | 94.55 ▼4.87 | 38.45 ▼4.87 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 1.99 ▼0.07 | 38.96 ▲3.12 | 34.49 ▲3.21 |
Add New Post /wp-admin/post-new.php | 1,517 ▼25 | 17.52 ▼0.78 | 666.33 ▲64.95 | 50.64 ▼9.37 |
Media Library /wp-admin/upload.php | 1,395 ▲13 | 4.20 ▲0.03 | 96.95 ▲2.13 | 42.82 ▼0.16 |
Company Details /wp-admin/options-general.php?page=wp-company | 856 | 2.04 | 23.52 | 25.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=wp-company
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=wp-company
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 0% 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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-company/public/views/public.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/wp-company/admin/views/admin.php:46
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: company, maintain, details, information
wp-company/wp-company.php Passed 13 tests
The main file in "WP Company" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
10 characters long description:
WP Company
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected723 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 161 | 441 | 695 |
JavaScript | 2 | 9 | 7 | 28 |
CSS | 2 | 0 | 2 | 0 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 14.67 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 7 | 21.88% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.25MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 18.41KB | 7.38KB | ▼ 59.90% |
assets/screenshot-2.png | 51.13KB | 11.42KB | ▼ 77.67% |
assets/banner-1544x500.png | 23.98KB | 9.63KB | ▼ 59.84% |
assets/screenshot-3.png | 121.49KB | 32.00KB | ▼ 73.66% |
assets/screenshot-1.png | 44.12KB | 13.59KB | ▼ 69.20% |