Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼138.45ms] Passed 4 tests
This is a short check of server-side resources used by Premium Posts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.17 | 42.16 ▲15.04 |
Dashboard /wp-admin | 3.14 ▲0.09 | 53.23 ▲11.83 |
Posts /wp-admin/edit.php | 3.25 ▲0.15 | 45.39 ▼0.19 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.07 | 100.08 ▼562.53 |
Media Library /wp-admin/upload.php | 3.08 ▲0.08 | 37.51 ▼2.89 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Premium Posts: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲97 | 15.86 ▲0.42 | 9.85 ▲2.06 | 45.37 ▼10.25 |
Dashboard /wp-admin | 2,967 ▲30 | 5.86 ▼0.10 | 141.68 ▼13.96 | 115.11 ▼6.59 |
Posts /wp-admin/edit.php | 2,769 ▲33 | 2.70 ▲0.01 | 66.30 ▼1.83 | 94.34 ▲4.78 |
Add New Post /wp-admin/post-new.php | 1,500 ▲2 | 18.77 ▼0.10 | 381.22 ▲2.12 | 117.86 ▲4.53 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.01 ▲0.03 | 158.21 ▼3.05 | 130.17 ▼0.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
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 smoke test targeting server-side errors
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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/premium-posts/premium-posts.php:14
- > 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
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: posts, mark, premium, tag, post...
premium-posts/premium-posts.php Passed 13 tests
The entry point to "Premium Posts" version 2.3 is a PHP file that has certain tags in its header comment area
64 characters long description:
Mark posts as "Premium" and display a custom message or ad code.
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
Success! There were no dangerous files found in this plugin362 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 67 | 176 | 296 |
PO File | 1 | 15 | 20 | 54 |
JavaScript | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 17.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 5 | 21.74% |
▷ Public methods | 21 | 91.30% |
▷ Protected methods | 2 | 8.70% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin