Benchmarks
Plugin footprint Passed 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.18MB] [CPU: ▼260.32ms] Passed 4 tests
This is a short check of server-side resources used by PJ News Ticker
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.20 | 35.43 ▲16.82 |
Dashboard /wp-admin | 3.24 ▲0.18 | 42.76 ▼8.08 |
Posts /wp-admin/edit.php | 3.35 ▲0.24 | 44.53 ▼6.64 |
Add New Post /wp-admin/post-new.php | 5.60 ▲0.17 | 95.24 ▼1,020.13 |
Media Library /wp-admin/upload.php | 3.18 ▲0.17 | 32.20 ▼6.44 |
PJ News Ticker /wp-admin/options-general.php?page=pj-news-ticker | 3.16 | 30.06 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by PJ News Ticker
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,806 ▲200 | 16.95 ▲1.37 | 11.84 ▲4.30 | 46.88 ▲0.07 |
Dashboard /wp-admin | 2,951 ▲98 | 6.57 ▲0.73 | 136.53 ▲2.17 | 108.48 ▲10.69 |
Posts /wp-admin/edit.php | 2,733 ▲27 | 2.77 ▲0.09 | 68.57 ▼0.77 | 109.85 ▲20.70 |
Add New Post /wp-admin/post-new.php | 1,679 ▼1,989 | 18.65 ▼1.84 | 354.79 ▼64.69 | 114.62 ▲9.16 |
Media Library /wp-admin/upload.php | 1,797 ▲25 | 5.31 ▲0.32 | 120.51 ▼40.21 | 108.47 ▼18.57 |
PJ News Ticker /wp-admin/options-general.php?page=pj-news-ticker | 2,290 | 3.31 | 87.72 | 85.71 |
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 | 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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pj-news-ticker/admin/pj-news-ticker-admin.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/pj-news-ticker/pj-news-ticker.php:172
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please describe screenshot #3 in pj-news-ticker/assets to your readme.txt
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== pj-news-ticker ===
)
pj-news-ticker/pj-news-ticker.php 92% from 13 tests
The entry point to "PJ News Ticker" version 1.9.5 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Domain Path: The domain path folder was not found ("/languages")
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 detected800 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 90 | 48 | 661 |
JavaScript | 2 | 11 | 14 | 93 |
CSS | 2 | 6 | 0 | 46 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 37.67 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.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 | 55 | |
▷ Static methods | 7 | 12.73% |
▷ Public methods | 54 | 98.18% |
▷ Protected methods | 1 | 1.82% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin