Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.30MB] [CPU: ▼4.26ms] Passed 4 tests
An overview of server-side resources used by Get news VNEXPRESS.NET
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.29 | 37.56 ▼5.57 |
Dashboard /wp-admin | 3.67 ▲0.32 | 46.44 ▼13.33 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 47.67 ▲0.32 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 93.53 ▲2.39 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 36.92 ▲1.54 |
Server storage [IO: ▲0.86MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Get news VNEXPRESS.NET
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.29 ▼1.35 | 1.66 ▼0.30 | 35.83 ▼14.09 |
Dashboard /wp-admin | 2,222 ▲34 | 4.85 ▼1.03 | 111.21 ▼1.89 | 42.23 ▼1.88 |
Posts /wp-admin/edit.php | 2,105 ▲13 | 1.99 ▲0.02 | 42.12 ▲1.88 | 37.20 ▲5.16 |
Add New Post /wp-admin/post-new.php | 1,546 ▲32 | 23.23 ▲5.68 | 644.13 ▼59.35 | 55.61 ▼5.84 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.24 ▲0.06 | 97.63 ▼17.00 | 41.88 ▼8.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/get-news-vnexpress-net/get_news_vnexpress.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/get-news-vnexpress-net/includes/ajax.php:2
- > 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 issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #3 (https://huykira.net/wp-content/uploads/2016/12/chuc-nang-plugin-lay-tin-tu-dong-tuy-chinh.png) image not found
get-news-vnexpress-net/get_news_vnexpress.php 92% from 13 tests
The main PHP script in "Get news VNEXPRESS.NET" version 1.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("get-news-vnexpress-net.php" instead of "get_news_vnexpress.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin2,592 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 370 | 309 | 2,126 |
SVG | 1 | 0 | 0 | 288 |
CSS | 2 | 4 | 5 | 127 |
JavaScript | 2 | 1 | 5 | 51 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 193.50 |
▷ Minimum class complexity | 138.00 |
▷ Maximum class complexity | 249.00 |
Average method complexity | 5.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.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 | 90 | |
▷ Static methods | 1 | 1.11% |
▷ Public methods | 75 | 83.33% |
▷ Protected methods | 15 | 16.67% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 24 | |
▷ Global constants | 24 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin