84% pronamic-feed-images

Code Review | Pronamic Feed Images

WordPress plugin Pronamic Feed Images scored84%from 54 tests.

About plugin

  • Plugin page: pronamic-feed-images
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.2
  • WordPress version: 6.3.1
  • First release: Nov 12, 2012
  • Latest release: Aug 22, 2013
  • Number of updates: 7
  • Update frequency: every 113.6 days
  • Top authors: remcotolsma (85.71%)pronamic (28.57%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,500 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Pronamic Feed Images
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0048.73 ▲5.44
Dashboard /wp-admin3.31 ▼0.0350.71 ▼14.82
Posts /wp-admin/edit.php3.37 ▲0.0151.85 ▼1.61
Add New Post /wp-admin/post-new.php5.90 ▲0.0197.98 ▼11.05
Media Library /wp-admin/upload.php3.24 ▲0.0133.34 ▼2.11

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Pronamic Feed Images
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.60 ▲0.251.75 ▲0.1443.50 ▲3.79
Dashboard /wp-admin2,198 ▲215.52 ▼0.1688.22 ▼20.9438.59 ▼8.12
Posts /wp-admin/edit.php2,100 ▼32.02 ▲0.0334.24 ▼5.2834.93 ▼6.99
Add New Post /wp-admin/post-new.php1,528 ▼723.03 ▲4.84621.37 ▼2.1153.55 ▼5.25
Media Library /wp-admin/upload.php1,403 ▲64.18 ▼0.07102.06 ▲1.3145.67 ▲2.14

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pronamic-feed-images/pronamic-feed-images.php:54

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: rss, pronamic, feed, thumbnail, image

pronamic-feed-images/pronamic-feed-images.php 92% from 13 tests

"Pronamic Feed Images" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected119 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2426189
PO File14731,06330

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.19
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods7100.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin