84% ou-analyzer

Code Review | OU ANALYZER

WordPress plugin OU ANALYZER scored84%from 54 tests.

About plugin

  • Plugin page: ou-analyzer
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.2-4.4.2
  • WordPress version: 6.3.1
  • First release: Apr 8, 2016
  • Latest release: Apr 8, 2016
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: oleksandr87 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /503 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by OU ANALYZER
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.76 ▼2.77
Dashboard /wp-admin3.33 ▼0.0244.58 ▼15.83
Posts /wp-admin/edit.php3.38 ▲0.0247.12 ▲0.68
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.89 ▼12.54
Media Library /wp-admin/upload.php3.25 ▲0.0236.28 ▲1.77
OU ANALYZER /wp-admin/options-general.php?page=ou_analyzer_option3.2231.37

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for OU ANALYZER
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.29 ▼1.301.94 ▲0.1843.18 ▲0.93
Dashboard /wp-admin2,210 ▲194.83 ▼0.06107.47 ▲4.1637.12 ▼4.58
Posts /wp-admin/edit.php2,090 ▲11.99 ▲0.0135.92 ▼4.5330.30 ▼3.79
Add New Post /wp-admin/post-new.php1,536 ▼123.02 ▲5.03661.69 ▲14.5767.77 ▲14.51
Media Library /wp-admin/upload.php1,395 ▲74.18 ▼0.03102.92 ▲6.6142.91 ▼0.46
OU ANALYZER /wp-admin/options-general.php?page=ou_analyzer_option8002.1822.5529.67

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ou-analyzer/index.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Screenshot) image missing
The official readme.txt might help

ou-analyzer/index.php 92% from 13 tests

Analyzing the main PHP file in "OU ANALYZER" version 1.0
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("ou-analyzer.php" instead of "index.php")

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 plugin100 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12722100

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png17.13KB9.00KB▼ 47.47%