Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Error in wp-content/plugins/gp-auto-extract/gp-auto-extract.php+25
Uncaught Error: Class 'GP_Route_Main' not found in wp-content/plugins/gp-auto-extract/gp-auto-extract.php:25
Stack trace:
#0 wp-admin/includes/plugin.php(2318): include_once()
#1 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.83ms] Passed 4 tests
Analyzing server-side resources used by GP Auto Extract
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.37 ▼6.49 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.97 ▼2.36 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.53 ▼0.44 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.26 ▼10.04 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.39 ▲1.07 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GP Auto Extract
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.29 ▼1.36 | 4.12 ▲2.38 | 37.88 ▼5.98 |
Dashboard /wp-admin | 2,206 ▲24 | 4.88 ▼0.99 | 111.63 ▼6.36 | 43.66 ▼0.46 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.01 | 33.25 ▼5.60 | 31.91 ▼3.92 |
Add New Post /wp-admin/post-new.php | 1,534 ▲14 | 22.97 ▼0.43 | 708.15 ▲49.06 | 58.37 ▲8.19 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.24 ▼0.02 | 139.56 ▲36.82 | 56.35 ▲12.73 |
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
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
Please fix the following items
- 16× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
fwrite() expects parameter 1 to be resource, string given in wp-content/plugins/gp-auto-extract/include/extract/not-gettexted.php on line 38
- > PHP Warning
Use of undefined constant STDERR - assumed 'STDERR' (this will throw an Error in a future version of PHP) in wp-content/plugins/gp-auto-extract/include/extract/not-gettexted.php on line 38
- > PHP Notice
Undefined variable: argv in wp-content/plugins/gp-auto-extract/include/extract/makepot.php on line 624
- > PHP Warning
fwrite() expects parameter 1 to be resource, string given in wp-content/plugins/gp-auto-extract/include/extract/not-gettexted.php on line 38
- > PHP Warning
Use of undefined constant STDERR - assumed 'STDERR' (this will throw an Error in a future version of PHP) in wp-content/plugins/gp-auto-extract/include/extract/not-gettexted.php on line 38
- > PHP Notice
Undefined variable: argv in wp-content/plugins/gp-auto-extract/include/extract/makepot.php on line 624
- > PHP Fatal error
Uncaught Error: Class 'GP_Route_Main' not found in wp-content/plugins/gp-auto-extract/gp-auto-extract.php:25
- > PHP Warning
Use of undefined constant STDERR - assumed 'STDERR' (this will throw an Error in a future version of PHP) in wp-content/plugins/gp-auto-extract/include/extract/not-gettexted.php on line 38
- > PHP Warning
fwrite() expects parameter 1 to be resource, string given in wp-content/plugins/gp-auto-extract/include/extract/not-gettexted.php on line 38
- > PHP Warning
fwrite() expects parameter 1 to be resource, string given in wp-content/plugins/gp-auto-extract/include/extract/not-gettexted.php on line 38
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: glotpress, translation
gp-auto-extract/gp-auto-extract.php Passed 13 tests
The main PHP script in "GP Auto Extract" version 0.8 is automatically included on every request by WordPress
56 characters long description:
Automatically extract source strings from a remote repo.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin2,486 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 392 | 701 | 2,368 |
JavaScript | 1 | 14 | 0 | 70 |
CSS | 1 | 3 | 0 | 48 |
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.39 |
Average class complexity | 28.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 83.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 152 | |
▷ Static methods | 7 | 4.61% |
▷ Public methods | 147 | 96.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 3.29% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin