10% picture-organizer

Code Review | OVM Picture Organizer

WordPress plugin OVM Picture Organizer scored10%from 54 tests.

About plugin

  • Plugin page: picture-organizer
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4.1
  • WordPress version: 6.3.1
  • First release: Jun 29, 2015
  • Latest release: Feb 1, 2016
  • Number of updates: 35
  • Update frequency: every 6.3 days
  • Top authors: RudolfFiedler (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /8,283 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/picture-organizer/ovm-picture-organizer.php+227
    unlink(wp-content/plugins/picture-organizer/inc/ovm_po_premium.php): No such file or directory

Server metrics [RAM: ▲0.02MB] [CPU: ▲0.08ms] Passed 4 tests

Analyzing server-side resources used by OVM Picture Organizer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0244.04 ▲2.53
Dashboard /wp-admin3.41 ▲0.11326.34 ▲274.92
Posts /wp-admin/edit.php3.38 ▲0.0354.69 ▲5.54
Add New Post /wp-admin/post-new.php5.91 ▲0.0386.76 ▼9.19
Media Library /wp-admin/upload.php3.25 ▲0.0336.07 ▲1.44

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 11 new options
New WordPress options
widget_recent-comments
ovm_po_options_tab
db_upgraded
ovm_po_affiliate_info
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
po_premium_info
can_compress_scripts
ovm_po_output_options_tab
...

Browser metrics Passed 4 tests

A check of browser resources used by OVM Picture Organizer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.22 ▼1.371.78 ▼0.2644.82 ▲1.30
Dashboard /wp-admin2,212 ▲244.82 ▼1.06108.86 ▼7.8739.45 ▼5.94
Posts /wp-admin/edit.php2,095 ▲62.06 ▲0.0339.38 ▲2.3934.14 ▲0.14
Add New Post /wp-admin/post-new.php1,533 ▲1923.60 ▲6.06631.32 ▼66.5553.05 ▼0.43
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0397.85 ▼15.4843.35 ▼3.01
Picture-Organizer /wp-admin/picture-organizer-options.php260.440.0713.50

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 11 options
    • widget_theysaidso_widget
    • ovm_po_output_options_tab
    • db_upgraded
    • widget_recent-posts
    • ovm_po_db_version
    • po_premium_info
    • can_compress_scripts
    • ovm_po_affiliate_info
    • theysaidso_admin_options
    • ovm_po_options_tab
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/picture-organizer/index.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
    • > GET request to /wp-admin/picture-organizer-options.php
    • > Network (severe)
    wp-admin/picture-organizer-options.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 21 tag instead of maximum 10
Please take inspiration from this readme.txt

picture-organizer/ovm-picture-organizer.php 92% from 13 tests

The main PHP file in "OVM Picture Organizer" ver. 2.0.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("picture-organizer.php" instead of "ovm-picture-organizer.php")

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
There were no executable files found in this plugin2,218 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP43192241,552
PO File1161184358
HTML640125
JavaScript3210105
CSS42478

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity30.80
▷ Minimum class complexity2.00
▷ Maximum class complexity137.00
Average method complexity4.82
▷ Minimum method complexity1.00
▷ Maximum method complexity56.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods39
▷ Static methods00.00%
▷ Public methods3282.05%
▷ Protected methods00.00%
▷ Private methods717.95%
Functions15
▷ Named functions1493.33%
▷ Anonymous functions16.67%
Constants19
▷ Global constants19100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin