Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.48ms] Passed 4 tests
Analyzing server-side resources used by Read Database
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 38.65 ▼12.62 |
Dashboard /wp-admin | 3.35 ▲0.04 | 48.62 ▲0.01 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 49.14 ▼1.88 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 87.13 ▼3.43 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.54 ▲4.01 |
Read Database /wp-admin/admin.php?page=read_database | 3.21 | 32.23 |
Settings /wp-admin/admin.php?page=read_database_settings | 3.24 | 33.31 |
Server storage [IO: ▲0.07MB] [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: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Read Database
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,872 ▲126 | 13.38 ▼0.85 | 2.78 ▲0.57 | 40.88 ▼3.71 |
Dashboard /wp-admin | 2,246 ▲61 | 5.92 ▲1.02 | 105.02 ▼3.94 | 41.24 ▲4.16 |
Posts /wp-admin/edit.php | 2,129 ▲40 | 2.08 ▲0.06 | 35.00 ▲1.20 | 32.37 ▲0.78 |
Add New Post /wp-admin/post-new.php | 1,546 ▲32 | 23.20 ▲5.69 | 649.14 ▼21.31 | 53.36 ▼0.62 |
Media Library /wp-admin/upload.php | 1,425 ▲37 | 4.27 ▲0.08 | 95.73 ▼5.19 | 41.36 ▼0.39 |
Read Database /wp-admin/admin.php?page=read_database | 860 | 1.87 | 23.89 | 24.84 |
Settings /wp-admin/admin.php?page=read_database_settings | 850 | 1.87 | 24.64 | 25.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=read_database
- > Notice in wp-content/plugins/read-database/classes.php+125
Undefined variable: output
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=read_database_settings
- > Network (severe)
wp-content/plugins/read-database/js/script.min.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: data, database, read data in tables, read databse, read data...
read-database/index.php 92% from 13 tests
"Read Database" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("read-database.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin180 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 45 | 115 | 173 |
CSS | 3 | 0 | 0 | 3 |
PHP | 3 | 0 | 0 | 3 |
XML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.69% |
Functions | 2 | |
▷ Named functions | 2 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin