77% remove-olympus-digital-camera-from-caption-and-title-by-image-upload

Code Review | Remove 'OLYMPUS DIGITAL CAMERA' from caption and title by image upload

WordPress plugin Remove 'OLYMPUS DIGITAL CAMERA' from caption and title by image upload scored77%from 54 tests.

About plugin

  • Plugin page: remove-olympus-di...
  • Plugin version: 0.832
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.2.2
  • WordPress version: 6.3.1
  • First release: May 24, 2019
  • Latest release: Jul 12, 2023
  • Number of updates: 12
  • Update frequency: every 125.8 days
  • Top authors: severinroth (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /798 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.00ms] Passed 4 tests

An overview of server-side resources used by Remove 'OLYMPUS DIGITAL CAMERA' from caption and title by image upload
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0246.46 ▲0.49
Dashboard /wp-admin3.32 ▼0.0255.65 ▼5.55
Posts /wp-admin/edit.php3.37 ▲0.0248.92 ▲0.37
Add New Post /wp-admin/post-new.php5.90 ▲0.0286.54 ▼19.30
Media Library /wp-admin/upload.php3.25 ▲0.0236.99 ▲2.82

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: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Remove 'OLYMPUS DIGITAL CAMERA' from caption and title by image upload
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3314.74 ▲0.551.85 ▲0.0744.27 ▲3.66
Dashboard /wp-admin2,210 ▲214.85 ▼0.11112.05 ▲4.1341.78 ▼0.37
Posts /wp-admin/edit.php2,093 ▲72.01 ▼0.0242.44 ▲2.1434.19 ▼4.73
Add New Post /wp-admin/post-new.php1,536 ▲323.24 ▲0.09730.47 ▲46.0857.51 ▲1.81
Media Library /wp-admin/upload.php1,386 ▼24.20 ▲0.0196.50 ▼4.7341.54 ▼4.24
remove OLYMPUS /wp-admin/rofm_admin.php260.440.0818.74

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% 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 no errors were found, 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
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/remove-olympus-digital-camera-from-caption-and-title-by-image-upload/rofm_admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/remove-olympus-digital-camera-from-caption-and-title-by-image-upload/mainPHP.php:39

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/rofm_admin.php
    • > Network (severe)
    wp-admin/rofm_admin.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed: Please take inspiration from this readme.txt

remove-olympus-digital-camera-from-caption-and-title-by-image-upload/init.php 77% from 13 tests

"Remove 'OLYMPUS DIGITAL CAMERA' from caption and title by image upload" version 0.832'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 ("remove-olympus-digital-camera-from-caption-and-title-by-image-upload.php" instead of "init.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 622 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Success! There were no dangerous files found in this plugin130 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PO File17868
PHP4143362

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected