84% pomo-uploader

Code Review | PoMo Uploader

WordPress plugin PoMo Uploader scored84%from 54 tests.

About plugin

  • Plugin page: pomo-uploader
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5
  • WordPress version: 6.3.1
  • First release: Jan 5, 2021
  • Latest release: Jan 5, 2021
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: matically (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /474 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼12.40ms] Passed 4 tests

Analyzing server-side resources used by PoMo Uploader
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0339.57 ▼0.07
Dashboard /wp-admin3.34 ▼0.0044.76 ▼18.18
Posts /wp-admin/edit.php3.39 ▲0.0445.16 ▼6.59
Add New Post /wp-admin/post-new.php5.92 ▲0.0482.20 ▼24.77
Media Library /wp-admin/upload.php3.26 ▲0.0436.37 ▲2.30

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for PoMo Uploader
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6614.47 ▲0.291.66 ▼0.0438.50 ▼0.58
Dashboard /wp-admin2,221 ▲305.85 ▲0.9595.08 ▼7.9938.96 ▼3.95
Posts /wp-admin/edit.php2,101 ▲92.00 ▼0.1433.41 ▼6.5830.17 ▼4.51
Add New Post /wp-admin/post-new.php1,524 ▼417.72 ▼0.71653.38 ▲31.9352.91 ▼9.07
Media Library /wp-admin/upload.php1,403 ▲154.15 ▼0.0395.39 ▼6.0142.76 ▲0.37

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pomo-uploader/pomo-uploader.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 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
5 plugin tags: translation, upload, mo, po, uploader

pomo-uploader/pomo-uploader.php Passed 13 tests

The principal PHP file in "PoMo Uploader" v. 1.0 is loaded by WordPress automatically on each request
18 characters long description:
Upload PO MO files

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin257 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12111167
PO File1232390

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity5.50
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin