Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.20MB] [CPU: ▼1.70ms] Passed 4 tests
Analyzing server-side resources used by Campus Explorer Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.19 | 41.65 ▼3.04 |
Dashboard /wp-admin | 3.50 ▲0.20 | 47.61 ▼4.06 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 52.65 ▲0.17 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 100.74 ▲0.12 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 38.58 ▲1.74 |
Campus Explorer /wp-admin/options-general.php?page=campusexplorer_settings | 3.39 | 31.08 |
Server storage [IO: ▲1.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
campusexplorer_version |
widget_campusexplorer |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Campus Explorer Widget: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲39 | 14.35 ▼0.36 | 1.86 ▼0.16 | 44.17 ▼1.34 |
Dashboard /wp-admin | 2,203 ▲35 | 5.67 ▼0.09 | 92.05 ▼5.86 | 38.91 ▼2.54 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.00 ▲0.05 | 39.66 ▼1.17 | 35.84 ▼6.55 |
Add New Post /wp-admin/post-new.php | 1,533 ▼2 | 23.05 ▲4.81 | 672.37 ▲8.30 | 56.84 ▼7.79 |
Media Library /wp-admin/upload.php | 1,411 ▲8 | 4.29 ▲0.10 | 97.18 ▼6.15 | 40.58 ▼6.98 |
Campus Explorer /wp-admin/options-general.php?page=campusexplorer_settings | 823 | 2.04 | 26.06 | 29.28 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_campusexplorer
- widget_theysaidso_widget
- campusexplorer_version
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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 86% from 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
3 plugin tags: campusexplorer, ce, college
campus-explorer-widget/campusexplorer.php 69% from 13 tests
The main PHP script in "Campus Explorer Widget" version 1.4 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: Please prefix the domain path with a forward slash character ("/")
- Main file name: The principal plugin file should be the same as the plugin slug ("campus-explorer-widget.php" instead of "campusexplorer.php")
- Domain Path: You should use only dashes and lowercase characters for the domain path ("")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin880 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 230 | 354 | 678 |
JavaScript | 7 | 33 | 16 | 170 |
JSON | 1 | 0 | 0 | 14 |
LESS | 1 | 0 | 0 | 10 |
CSS | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 28.20 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 4.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 3 | 7.69% |
▷ Public methods | 37 | 94.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.13% |
Functions | 1 | |
▷ Named functions | 1 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 1.05MB with 0.70MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 224.93KB | 59.59KB | ▼ 73.51% |
assets/screenshot-2.png | 416.92KB | 124.25KB | ▼ 70.20% |
assets/screenshot-4.png | 235.83KB | 83.61KB | ▼ 64.55% |
assets/screenshot-3.png | 193.33KB | 55.67KB | ▼ 71.20% |
assets/img/campus-explorer-logo_small.png | 8.75KB | 4.34KB | ▼ 50.41% |