Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin did not install without errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'SHOW_REPOS' does not have a method 'activate'
Server metrics [RAM: ▲0.10MB] [CPU: ▲0.44ms] Passed 4 tests
Analyzing server-side resources used by Show Repos
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 40.84 ▼0.22 |
Dashboard /wp-admin | 3.41 ▲0.10 | 57.34 ▲3.70 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 53.65 ▲2.83 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 101.45 ▲0.64 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 40.63 ▼1.50 |
Show Repos /wp-admin/options-general.php?page=show-repos | 3.30 | 36.37 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
show_repos_options |
Browser metrics Passed 4 tests
Show Repos: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.34 ▲0.06 | 1.70 ▲0.04 | 43.00 ▲0.74 |
Dashboard /wp-admin | 2,202 ▲24 | 5.62 ▲0.03 | 93.08 ▼14.31 | 39.79 ▼4.94 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.01 | 42.18 ▲4.66 | 35.74 ▲1.63 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.07 ▼0.74 | 675.47 ▼25.71 | 53.14 ▲4.23 |
Media Library /wp-admin/upload.php | 1,398 ▲1 | 4.16 ▼0.10 | 99.24 ▼3.57 | 43.34 ▲1.26 |
Show Repos /wp-admin/options-general.php?page=show-repos | 820 | 1.99 | 27.79 | 25.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'SHOW_REPOS' does not have a method 'deactivate'
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- show_repos_options
- db_upgraded
- 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
Even though no errors were found, 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× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/show-repos/show-repos.php:52
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser 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
4 plugin tags: git, github, repository, gitee
show-repos/show-repos.php Passed 13 tests
The main PHP script in "Show Repos" version 1.1.3 is automatically included on every request by WordPress
62 characters long description:
Show your repo(s) on the wordpress through a simple shortcode.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected803 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 37 | 160 | 406 |
CSS | 2 | 0 | 0 | 259 |
HTML | 2 | 0 | 0 | 76 |
PO File | 1 | 14 | 16 | 62 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 16.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 17 | |
▷ Static methods | 15 | 88.24% |
▷ Public methods | 15 | 88.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 11.76% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 14 | |
▷ Global constants | 13 | 92.86% |
▷ Class constants | 1 | 7.14% |
▷ Public constants | 1 | 100.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
No PNG files were detected