Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin did not install without errors
- > Parse error in wp-content/plugins/references/references.php+576
syntax error, unexpected 'public' (T_PUBLIC)
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.81ms] Passed 4 tests
Server-side resources used by References
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 45.90 ▲1.40 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.45 ▼5.70 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.53 ▼3.73 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.92 ▼7.19 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.99 ▲3.68 |
Server storage [IO: ▲0.98MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by References
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.28 ▼0.01 | 2.26 ▲0.28 | 45.58 ▲0.73 |
Dashboard /wp-admin | 2,198 ▲18 | 5.64 ▲0.01 | 90.44 ▲1.94 | 40.40 ▼3.46 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.03 ▲0.03 | 40.16 ▲0.79 | 35.62 ▲0.10 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.25 ▲5.71 | 654.48 ▼1.42 | 53.58 ▲3.71 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.32 ▲0.09 | 100.54 ▼0.82 | 44.87 ▲1.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Parse error
syntax error, unexpected 'public' (T_PUBLIC) in wp-content/plugins/references/references.php on line 576
- > PHP Parse 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)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (Install References plugin.), #2 (The References settings page.), #3 (Build article connections.), #4 (Configure widget(s).), #5 (Created widget view.), #6 (Using REF shortcode in post editor.), #7 (REF shortcode rendered on frontend.)
references/references.php Passed 13 tests
This is the main PHP file of "References" version 1.201, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
89 characters long description:
Enables post references (for any type of publications) to connect articles to each other.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin537 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 109 | 140 | 529 |
JavaScript | 2 | 0 | 1 | 7 |
CSS | 1 | 1 | 1 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 32.67 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 22 | |
▷ Static methods | 9 | 40.91% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.91MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
screenshot-7.png | 104.20KB | 39.63KB | ▼ 61.97% |
admin/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
screenshot-5.png | 152.07KB | 66.66KB | ▼ 56.16% |
screenshot-1.png | 109.97KB | 44.65KB | ▼ 59.39% |