Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼142.81ms] Passed 4 tests
This is a short check of server-side resources used by GP Create Test Post
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 38.60 ▲16.26 |
Dashboard /wp-admin | 3.06 ▲0.01 | 45.28 ▼1.57 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 48.36 ▼0.29 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 99.95 ▼567.78 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 35.83 ▼1.58 |
GP Create Test Post /wp-admin/options-general.php?page=gp-create-test-post | 2.98 | 28.49 |
Server storage [IO: ▲1.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for GP Create Test Post
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,710 ▲114 | 15.78 ▲0.19 | 10.34 ▼1.25 | 63.91 ▲11.57 |
Dashboard /wp-admin | 2,979 ▲48 | 5.95 ▲0.04 | 145.37 ▼11.89 | 95.71 ▼28.36 |
Posts /wp-admin/edit.php | 2,748 ▲9 | 2.72 ▲0.01 | 65.86 ▼4.98 | 78.78 ▼17.68 |
Add New Post /wp-admin/post-new.php | 1,690 ▲7 | 17.22 ▲1.00 | 377.47 ▼23.86 | 125.49 ▼2.05 |
Media Library /wp-admin/upload.php | 1,816 ▲6 | 5.00 ▼0.01 | 151.79 ▼6.28 | 130.46 ▼1.51 |
GP Create Test Post /wp-admin/options-general.php?page=gp-create-test-post | 1,152 | 2.09 | 62.80 | 54.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gp-create-test-post/gp-create-test-post.php:39
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
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
3 plugin tags: post test, create genaral post, create test post
gp-create-test-post/gp-create-test-post.php Passed 13 tests
The main file in "GP Create Test Post" v. 1.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
58 characters long description:
Create test posts for the first install Wordpress Project.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin9,040 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 9 | 25 | 7,047 |
JavaScript | 3 | 577 | 197 | 1,563 |
SVG | 1 | 0 | 0 | 288 |
PHP | 1 | 20 | 22 | 142 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot.png | 15.99KB | 10.31KB | ▼ 35.49% |