Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼143.12ms] Passed 4 tests
Server-side resources used by News Articles
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.93 ▲0.21 | 34.94 ▲16.56 |
Dashboard /wp-admin | 3.16 ▲0.10 | 47.44 ▲1.28 |
Posts /wp-admin/edit.php | 3.27 ▲0.16 | 47.02 ▲8.41 |
Add New Post /wp-admin/post-new.php | 5.52 ▲0.09 | 92.13 ▼578.42 |
Media Library /wp-admin/upload.php | 3.10 ▲0.10 | 30.06 ▼3.74 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=article | 3.10 | 32.79 |
All Articles /wp-admin/edit.php?post_type=article | 3.15 | 36.38 |
Add New /wp-admin/post-new.php?post_type=article | 3.17 | 53.96 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=article | 3.09 | 38.36 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 1 new option
New WordPress options |
---|
category_children |
Browser metrics Passed 4 tests
A check of browser resources used by News Articles
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,728 ▲132 | 16.26 ▲0.59 | 10.11 ▼0.76 | 43.01 ▼4.22 |
Dashboard /wp-admin | 3,015 ▲84 | 5.87 ▼0.17 | 122.82 ▼33.20 | 104.45 ▼14.92 |
Posts /wp-admin/edit.php | 2,784 ▲45 | 2.73 ▲0.02 | 78.94 ▲13.90 | 81.08 ▼2.54 |
Add New Post /wp-admin/post-new.php | 1,712 ▲29 | 18.72 ▲0.29 | 372.74 ▼21.15 | 109.05 ▼3.78 |
Media Library /wp-admin/upload.php | 1,852 ▲45 | 5.03 ▼0.05 | 152.36 ▲3.42 | 120.08 ▲2.10 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=article | 1,871 | 2.39 | 61.36 | 81.15 |
All Articles /wp-admin/edit.php?post_type=article | 1,508 | 2.62 | 72.13 | 75.56 |
Add New /wp-admin/post-new.php?post_type=article | 2,591 | 4.77 | 113.55 | 93.94 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=article | 1,955 | 2.39 | 65.56 | 86.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 1 option
- category_children
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: scraper, link, article, news
news-articles/news-articles.php Passed 13 tests
The entry point to "News Articles" version 1.0.0 is a PHP file that has certain tags in its header comment area
76 characters long description:
Adds a custom post type which allows you to post news articles on your site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin382 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 109 | 536 | 382 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 4.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 22 | 78.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 21.43% |
Functions | 3 | |
▷ Named functions | 3 | 100.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 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