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.09MB] [CPU: ▼3.58ms] Passed 4 tests
Analyzing server-side resources used by RosarioSIS REST API
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 41.73 ▲1.66 |
Dashboard /wp-admin | 3.39 ▲0.09 | 46.09 ▼3.90 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 43.13 ▼4.68 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 82.59 ▼6.82 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 34.16 ▲1.08 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options |
---|
rosariosis_rest_api_version |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for RosarioSIS REST API
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.30 ▼1.43 | 1.63 ▼0.31 | 44.25 ▲2.79 |
Dashboard /wp-admin | 2,206 ▲14 | 5.84 ▲0.73 | 104.15 ▼8.65 | 43.05 ▲1.53 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▲0.02 | 34.46 ▼1.20 | 34.58 ▼4.06 |
Add New Post /wp-admin/post-new.php | 1,533 ▲13 | 23.39 ▲0.21 | 666.77 ▼22.58 | 55.48 ▼6.45 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.29 ▲0.04 | 96.06 ▼3.46 | 40.08 ▼5.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- theysaidso_admin_options
- rosariosis_rest_api_version
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: connect, school, sis, student
rosariosis-rest-api/rosariosis-rest-api.php Passed 13 tests
"RosarioSIS REST API" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
86 characters long description:
Plugin helper to connect to the RosarioSIS (free Student Information System) REST API.
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 plugin1,316 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 468 | 895 | 1,123 |
JavaScript | 5 | 25 | 15 | 134 |
PO File | 1 | 7 | 10 | 45 |
JSON | 1 | 0 | 0 | 14 |
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.43 |
Average class complexity | 30.17 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 3.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 3 | 4.23% |
▷ Public methods | 69 | 97.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.82% |
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 Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/icon-128x128.png | 2.43KB | 2.43KB | 0.04% |
assets/img/icon-256x256.png | 4.47KB | 4.47KB | 0.00% |
assets/img/icon.png | 4.22KB | 4.47KB | 0.00% |