Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/sunray-author-manager/sunray-author-manager.php+1581
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼0.29MB] [CPU: ▼7.93ms] Passed 4 tests
This is a short check of server-side resources used by Sunray Author Manager
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 5.23 ▼37.14 |
Dashboard /wp-admin | 3.37 ▲0.07 | 45.80 ▼2.02 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 50.51 ▲4.34 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 100.14 ▲7.66 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 42.50 ▲3.10 |
Settings /wp-admin/admin.php?page=sam-options-settings | 3.26 | 35.17 |
Books /wp-admin/edit.php?post_type=sam_book | 3.35 | 39.37 |
Stories /wp-admin/edit.php?post_type=sam_story | 3.35 | 31.39 |
Server storage [IO: ▲0.31MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 40 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
sam_version |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Sunray Author Manager
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,946 ▲211 | 13.68 ▼0.72 | 5.64 ▲3.90 | 39.60 ▼5.15 |
Dashboard /wp-admin | 2,257 ▲65 | 5.03 ▲0.07 | 110.21 ▼12.84 | 41.24 ▼0.27 |
Posts /wp-admin/edit.php | 2,103 ▲11 | 2.28 ▲0.27 | 47.49 ▲12.94 | 36.05 ▲2.57 |
Add New Post /wp-admin/post-new.php | 1,566 ▲32 | 18.49 ▼4.62 | 599.45 ▼103.36 | 59.00 ▲5.30 |
Media Library /wp-admin/upload.php | 1,436 ▲54 | 4.29 ▲0.04 | 99.24 ▲1.52 | 43.60 ▼1.43 |
Settings /wp-admin/admin.php?page=sam-options-settings | 1,119 | 1.96 | 24.19 | 37.07 |
Books /wp-admin/edit.php?post_type=sam_book | 1,233 | 2.20 | 33.47 | 32.95 |
Stories /wp-admin/edit.php?post_type=sam_story | 1,236 | 2.20 | 37.24 | 30.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 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 did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- sam_version
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% 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 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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sunray-author-manager/sunray-author-manager.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: bibliography, author, slider, writer, cover...
sunray-author-manager/sunray-author-manager.php Passed 13 tests
This is the main PHP file of "Sunray Author Manager" version 1.0.16, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
55 characters long description:
A versatile plugin for writers to highlight their work.
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
Everything looks great! No dangerous files found in this plugin4,770 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 876 | 83 | 2,175 |
PHP | 1 | 325 | 120 | 1,150 |
CSS | 5 | 101 | 13 | 463 |
Markdown | 3 | 111 | 0 | 261 |
Sass | 2 | 27 | 5 | 260 |
HTML | 1 | 11 | 1 | 151 |
LESS | 1 | 13 | 5 | 150 |
JSON | 4 | 0 | 0 | 134 |
SVG | 1 | 1 | 0 | 13 |
Ruby | 1 | 2 | 0 | 8 |
make | 1 | 3 | 0 | 5 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 35 | |
▷ Named functions | 35 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
css/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
css/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
css/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
css/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |