74% pkrss

Code Review | pkrss

WordPress plugin pkrss scored74%from 54 tests.

About plugin

  • Plugin page: pkrss
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-3.8.1
  • WordPress version: 6.3.1
  • First release: Aug 20, 2013
  • Latest release: Mar 4, 2014
  • Number of updates: 16
  • Update frequency: every 12.4 days
  • Top authors: liandeliang (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /965 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼1.47ms] Passed 4 tests

Analyzing server-side resources used by pkrss
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.33 ▲0.38
Dashboard /wp-admin3.31 ▼0.0348.69 ▼7.82
Posts /wp-admin/edit.php3.37 ▲0.0146.80 ▲0.31
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.01 ▲9.58
Media Library /wp-admin/upload.php3.24 ▲0.0034.86 ▲1.26

Server storage [IO: ▲4.33MB] [DB: ▲0.70MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 217 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

pkrss: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.69 ▲0.341.74 ▼0.0344.90 ▼0.23
Dashboard /wp-admin2,192 ▲125.53 ▼0.1182.07 ▼1.3935.70 ▼2.79
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0633.19 ▼0.3936.64 ▼2.01
Add New Post /wp-admin/post-new.php1,529 ▲123.29 ▲0.22593.26 ▼49.1952.00 ▼2.08
Media Library /wp-admin/upload.php1,394 ▼64.20 ▼0.0293.14 ▼0.7041.75 ▼2.32

Uninstaller [IO: ▲0.00MB] [DB: ▲0.70MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pkrss/pkrss.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/pkrss/page_pkrss.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === pkrss === )
  • Screenshots: Please add an image for screenshot #1 (wait for added...)
The official readme.txt is a good inspiration

pkrss/pkrss.php Passed 13 tests

The main PHP file in "pkrss" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
98 characters long description:
Support all over the world Popular RSS news,and translate many language with your mother language.

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Almost there! Just fix the following issues
  • Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
    • .as - Adobe Flash ActionScript File in Adobe Flash
      • wp-content/plugins/pkrss/src/min/js/third/jquery-jplayer/happyworm/jPlayer/ConnectManager.as
      • wp-content/plugins/pkrss/src/min/js/third/jquery-jplayer/Jplayer.as
      • wp-content/plugins/pkrss/src/min/js/third/jquery-jplayer/happyworm/jPlayer/JplayerEvent.as
      • wp-content/plugins/pkrss/src/min/js/third/jquery-jplayer/happyworm/jPlayer/JplayerMp3.as
      • wp-content/plugins/pkrss/src/min/js/third/jquery-jplayer/happyworm/jPlayer/JplayerMp4.as
      • wp-content/plugins/pkrss/src/min/js/third/jquery-jplayer/happyworm/jPlayer/JplayerRtmp.as
      • wp-content/plugins/pkrss/src/min/js/third/jquery-jplayer/happyworm/jPlayer/JplayerStatus.as
      • wp-content/plugins/pkrss/src/min/js/third/jquery-jplayer/happyworm/jPlayer/TraceOut.as
2,736 lines of code in 103 files:
LanguageFilesBlank linesComment linesLines of code
ActionScript83353122,288
HTML45218315
JavaScript7109583
PHP281632
CSS180818

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
34 PNG files occupy 0.28MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/min/css/jquery-jplayer/blue.monday/jplayer.blue.monday.video.play.png17.28KB4.28KB▼ 75.21%
src/min/css/newspaper/images/gradient.png0.17KB0.98KB0.00%
src/min/css/jquery-impromptu/themes/twitter-bootstrap/img/glyphicons-halflings-white.png8.57KB9.20KB0.00%
src/images/default/bg_fn.png12.22KB3.91KB▼ 67.98%
src/images/catalog/headline.png2.60KB1.72KB▼ 33.71%