73% wp-featured-entries

Code Review | WP Featured Entries

WordPress plugin WP Featured Entries scored73%from 54 tests.

About plugin

  • Plugin page: wp-featured-entries
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Jun 21, 2013
  • Latest release: Jun 26, 2013
  • Number of updates: 5
  • Update frequency: every 1.0 days
  • Top authors: Jahertor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,196 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼0.48ms] Passed 4 tests

Analyzing server-side resources used by WP Featured Entries
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1041.89 ▲0.72
Dashboard /wp-admin3.40 ▲0.1050.48 ▲1.90
Posts /wp-admin/edit.php3.51 ▲0.1647.49 ▼0.33
Add New Post /wp-admin/post-new.php5.98 ▲0.1086.02 ▼4.19
Media Library /wp-admin/upload.php3.32 ▲0.1037.17 ▲4.22

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: 2 new tables, 6 new options
New tables
wp_jh_posts
wp_jh_featured
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WP Featured Entries
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲8613.63 ▼0.751.73 ▼0.0842.01 ▼9.47
Dashboard /wp-admin2,212 ▲244.87 ▼0.0599.10 ▼12.6980.95 ▲38.60
Posts /wp-admin/edit.php2,110 ▲211.99 ▼0.0237.00 ▼3.8636.19 ▲1.13
Add New Post /wp-admin/post-new.php1,686 ▲15321.79 ▼1.52688.15 ▲14.1952.72 ▼16.55
Media Library /wp-admin/upload.php1,406 ▲184.14 ▼0.0898.48 ▲0.0761.37 ▲18.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_jh_posts
    • wp_jh_featured
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-featured-entries/vista.php:390
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-featured-entries/vista.php:390

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% 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
These attributes need your attention:
  • Contributors: Please add at least on tag
  • Contributors: The plugin contributors field is not present
  • Screenshots: Screenshot #1 ([Screenshot](http://jahertor.com/src/uploads/screenshot-featured.png)) image not found
The official readme.txt is a good inspiration

wp-featured-entries/jh-featured.php 85% from 13 tests

"WP Featured Entries" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-featured-entries.php" instead of "jh-featured.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 196 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,029 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP410927730
CSS279154
PO File2380108
JavaScript113037

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions27
▷ Named functions27100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icon.png0.61KB0.51KB▼ 16.05%