84% post-thumbnail-post-list

Code Review | Post Thumbnail & Post List

WordPress plugin Post Thumbnail & Post List scored84%from 54 tests.

About plugin

  • Plugin page: post-thumbnail-po...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 13, 2020
  • Latest release: May 13, 2020
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: themelamp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /1,962 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼8.09ms] Passed 4 tests

An overview of server-side resources used by Post Thumbnail & Post List
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.39 ▲3.55
Dashboard /wp-admin3.36 ▲0.0245.93 ▼12.34
Posts /wp-admin/edit.php3.41 ▲0.0643.10 ▼5.00
Add New Post /wp-admin/post-new.php5.94 ▲0.0689.72 ▼14.42
Media Library /wp-admin/upload.php3.28 ▲0.0633.12 ▼0.61

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_wp_post_thumb_list_widget
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Post Thumbnail & Post List
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.20 ▼1.171.66 ▼0.1042.86 ▲0.95
Dashboard /wp-admin2,206 ▲154.88 ▼0.01112.56 ▲13.3848.31 ▲3.56
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0134.54 ▼6.9333.85 ▼3.48
Add New Post /wp-admin/post-new.php1,544 ▲223.04 ▲4.98571.94 ▼40.7059.71 ▲2.31
Media Library /wp-admin/upload.php1,388 ▲34.21 ▲0.0195.54 ▼1.7243.52 ▲2.20

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_wp_post_thumb_list_widget
    • widget_theysaidso_widget

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions 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/post-thumbnail-post-list/includes/widget.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/post-thumbnail-post-list/includes/wp-post-thumb-list-main.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
No plugin tags provided

post-thumbnail-post-list/post-thumb-post-list.php 85% from 13 tests

The principal PHP file in "Post Thumbnail & Post List" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 287 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("post-thumbnail-post-list.php" instead of "post-thumb-post-list.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin5,428 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS271892,520
PHP34432237

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity10.50
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin