Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.29MB] [CPU: ▼13.07ms] Passed 4 tests
An overview of server-side resources used by Secretary
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 40.61 ▼4.72 |
Dashboard /wp-admin | 3.63 ▲0.29 | 52.55 ▼29.22 |
Posts /wp-admin/edit.php | 3.68 ▲0.33 | 55.57 ▲7.05 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.27 | 87.92 ▼15.38 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 39.67 ▼2.95 |
Secretary /wp-admin/options-general.php?page=secretary-config | 3.46 | 36.93 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Secretary
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲60 | 13.22 ▼1.17 | 4.37 ▲2.19 | 42.00 ▼3.50 |
Dashboard /wp-admin | 2,206 ▲15 | 5.84 ▲0.94 | 105.74 ▼1.02 | 35.16 ▼4.81 |
Posts /wp-admin/edit.php | 2,098 ▲6 | 2.03 ▲0.02 | 40.32 ▲2.97 | 34.29 ▼3.01 |
Add New Post /wp-admin/post-new.php | 6,213 ▲4,680 | 19.12 ▼4.13 | 983.84 ▲288.11 | 56.20 ▼9.72 |
Media Library /wp-admin/upload.php | 1,394 ▲9 | 4.18 ▼0.01 | 107.87 ▼12.60 | 47.16 ▼0.41 |
Secretary /wp-admin/options-general.php?page=secretary-config | 1,026 | 2.36 | 44.88 | 40.39 |
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 were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
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
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/secretary/vendor/mustangostang/spyc/php4/5to4.php
- > /wp-content/plugins/secretary/vendor/mustangostang/spyc/examples/yaml-load.php
- 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'SecretaryRules' not found in wp-content/plugins/secretary/rules/categories.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/secretary/controllers/secretary-config.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/secretary/vendor/mustangostang/spyc/tests/DumpTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'SecretaryRules' not found in wp-content/plugins/secretary/rules/excerpt.php:3
- > PHP Fatal error
Uncaught Error: Class 'SecretaryRules' not found in wp-content/plugins/secretary/rules/featured_image.php:3
- > PHP Fatal error
Uncaught Error: Class 'SecretaryRules' not found in wp-content/plugins/secretary/rules/images.php:3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/secretary/vendor/mustangostang/spyc/tests/IndentTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'SecretaryRules' not found in wp-content/plugins/secretary/rules/html_checker.php:3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/secretary/vendor/mustangostang/spyc/tests/RoundTripTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'SecretaryRules' not found in wp-content/plugins/secretary/rules/links.php:3
- > 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 uses markdown syntax to describe your plugin to the world
6 plugin tags: validate, check, proofread, qa, secretary...
secretary/secretary.php Passed 13 tests
Analyzing the main PHP file in "Secretary" version 1.0.3
85 characters long description:
Automatic quality-assurance checks, ensuring your articles meet editorial guidelines.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin3,194 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 674 | 727 | 2,866 |
YAML | 5 | 72 | 34 | 196 |
JSON | 2 | 0 | 0 | 84 |
Markdown | 1 | 9 | 0 | 21 |
CSS | 3 | 2 | 1 | 16 |
JavaScript | 3 | 0 | 0 | 11 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 21.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 257.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 244 | |
▷ Static methods | 30 | 12.30% |
▷ Public methods | 193 | 79.10% |
▷ Protected methods | 3 | 1.23% |
▷ Private methods | 48 | 19.67% |
Functions | 20 | |
▷ Named functions | 9 | 45.00% |
▷ Anonymous functions | 11 | 55.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
PNG images were not found in this plugin