Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.77MB] [CPU: ▲4.45ms] Passed 4 tests
This is a short check of server-side resources used by Prograpper
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.37 ▲0.91 | 45.41 ▲3.39 |
Dashboard /wp-admin | 4.06 ▲0.76 | 61.35 ▲9.56 |
Posts /wp-admin/edit.php | 4.12 ▲0.76 | 53.67 ▲7.09 |
Add New Post /wp-admin/post-new.php | 6.67 ▲0.78 | 91.53 ▼2.24 |
Media Library /wp-admin/upload.php | 3.99 ▲0.76 | 42.51 ▲10.41 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 61 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
json_api_plugin_version |
widget_recent-posts |
prograpper_settings |
Browser metrics Passed 4 tests
A check of browser resources used by Prograpper
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲86 | 13.25 ▼1.12 | 1.80 ▼0.07 | 45.10 ▼5.48 |
Dashboard /wp-admin | 2,213 ▲22 | 5.86 ▲0.01 | 104.66 ▲6.65 | 75.86 ▲30.66 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.02 ▲0.03 | 34.51 ▼4.67 | 32.59 ▼2.05 |
Add New Post /wp-admin/post-new.php | 1,684 ▲170 | 21.58 ▲4.04 | 716.98 ▲13.01 | 56.74 ▼2.80 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.20 ▲0.01 | 100.46 ▼15.01 | 67.90 ▲19.89 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- prograpper_settings
- json_api_plugin_version
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 43× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Test_JSON_TestCase' not found in wp-content/plugins/prograpper/wp-api/tests/test-json-posts.php:9
- > PHP Warning
include_once(): Failed opening 'ABSPATHWPINC/class-wp-json-server.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/prograpper/wp-api/lib/wp-json.php on line 30
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/prograpper/wp-api/tests/test-json-post-revisions.php:10
- > PHP Warning
include_once(ABSPATHWPINC/class-wp-xmlrpc-server.php): failed to open stream: No such file or directory in wp-content/plugins/prograpper/wp-api/lib/wp-json.php on line 28
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/prograpper/wp-api/tests/test-json-testcase.php:3
- > PHP Warning
require(/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/prograpper/wp-api/tests/bootstrap.php on line 21
- > PHP Fatal error
Uncaught Error: Class 'WP_JSON_Posts' not found in wp-content/plugins/prograpper/wp-api/lib/class-wp-json-media.php:3
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/prograpper/wp-api/lib/wp-json.php on line 30
- > PHP Fatal error
Uncaught Error: Class 'WP_JSON_Taxonomies' not found in wp-content/plugins/prograpper/wp-api/tests/taxonomies_caller.php:3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/prograpper/wp-api/lib/wp-json.php on line 29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 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
Please fix the following attributes:
- Contributors: Contributors not specified
- Tags: There are too many tags (11 tag instead of maximum 10)
prograpper/prograpper.php Passed 13 tests
The principal PHP file in "Prograpper" v. 0.0.6 is loaded by WordPress automatically on each request
101 characters long description:
Create (android / ios ) App for your WordPress Site, Be close to your audience, and get more traffic.
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 plugin6,890 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 44 | 1,532 | 2,675 | 4,998 |
Markdown | 2 | 376 | 0 | 1,185 |
JavaScript | 3 | 145 | 319 | 587 |
Bourne Shell | 1 | 15 | 4 | 59 |
PO File | 1 | 10 | 8 | 35 |
XML | 1 | 2 | 1 | 26 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 15.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 127.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 31 | |
▷ Abstract classes | 3 | 9.68% |
▷ Concrete classes | 28 | 90.32% |
▷ Final classes | 0 | 0.00% |
Methods | 363 | |
▷ Static methods | 3 | 0.83% |
▷ Public methods | 305 | 84.02% |
▷ Protected methods | 49 | 13.50% |
▷ Private methods | 9 | 2.48% |
Functions | 34 | |
▷ Named functions | 34 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 20 | |
▷ Global constants | 7 | 35.00% |
▷ Class constants | 13 | 65.00% |
▷ Public constants | 13 | 100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/prograpper-wordpress.png | 0.36KB | 0.32KB | ▼ 13.40% |