84% omnomnom

Code Review | Omnomnom

WordPress plugin Omnomnom scored84%from 54 tests.

About plugin

  • Plugin page: omnomnom
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.1
  • WordPress version: 6.3.1
  • First release: Jan 24, 2015
  • Latest release: Jan 24, 2015
  • Number of updates: 4
  • Update frequency: every 22.2 days
  • Top authors: sgrant (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /680 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

This is a short check of server-side resources used by Omnomnom
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.08 ▼2.99
Dashboard /wp-admin3.33 ▲0.0346.12 ▼4.02
Posts /wp-admin/edit.php3.38 ▲0.0351.84 ▲4.48
Add New Post /wp-admin/post-new.php5.93 ▲0.0486.84 ▼13.92
Media Library /wp-admin/upload.php3.25 ▲0.0336.53 ▲3.00
Omnomnom /wp-admin/options-general.php?page=wp-omnomnom3.2230.20

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Omnomnom
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.23 ▼1.384.57 ▲2.4739.54 ▼9.93
Dashboard /wp-admin2,210 ▲224.88 ▼0.1396.33 ▼11.4141.91 ▲2.71
Posts /wp-admin/edit.php2,090 ▲12.05 ▼0.0136.35 ▲0.2733.75 ▼1.03
Add New Post /wp-admin/post-new.php1,545 ▲3118.39 ▲0.75643.16 ▼45.6349.83 ▼15.22
Media Library /wp-admin/upload.php1,392 ▲44.19 ▼0.0497.84 ▲3.5641.90 ▼3.73
Omnomnom /wp-admin/options-general.php?page=wp-omnomnom7992.0333.6323.88

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • 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)
Good news, no errors were detected

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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/omnomnom/omnomnom.php:39

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: omnomnom, substring, replace, fun, translation

omnomnom/omnomnom.php Passed 13 tests

The principal PHP file in "Omnomnom" v. 0.1 is loaded by WordPress automatically on each request
41 characters long description:
Replace any instance of om with omnomnom.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin86 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1223686

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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
3 PNG files occupy 0.25MB with 0.17MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-3.png55.47KB17.93KB▼ 67.68%
assets/screenshot-2.png150.23KB49.84KB▼ 66.82%
assets/screenshot-1.png46.51KB14.54KB▼ 68.73%