89% funny-equations

Code Review | Funny Equations

WordPress plugin Funny Equations scored89%from 54 tests.

About plugin

  • Plugin page: funny-equations
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-5.9
  • WordPress version: 6.3.1
  • First release: Apr 15, 2020
  • Latest release: Jun 28, 2022
  • Number of updates: 5
  • Update frequency: every 160.8 days
  • Top authors: oleksandr87 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,258 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.68ms] Passed 4 tests

Analyzing server-side resources used by Funny Equations
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.93 ▼2.49
Dashboard /wp-admin3.36 ▲0.0647.50 ▼0.59
Posts /wp-admin/edit.php3.41 ▲0.0546.16 ▼1.14
Add New Post /wp-admin/post-new.php5.94 ▲0.0581.36 ▼12.41
Media Library /wp-admin/upload.php3.28 ▲0.0533.80 ▼2.66

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Funny Equations
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲15514.04 ▼0.165.49 ▲3.6844.08 ▼2.23
Dashboard /wp-admin2,219 ▲314.84 ▼1.0496.23 ▼19.8337.65 ▼7.56
Posts /wp-admin/edit.php2,105 ▲162.02 ▼0.0338.57 ▲1.4735.04 ▲2.92
Add New Post /wp-admin/post-new.php1,551 ▲3723.36 ▲5.67689.81 ▲21.6957.04 ▼4.38
Media Library /wp-admin/upload.php1,404 ▲134.22 ▲0.0394.28 ▼15.1343.02 ▼1.23

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 86% 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
Attributes that require attention:
  • Screenshots: Screenshot #1 (Screenshot 1) image required
You can take inspiration from this readme.txt

funny-equations/oufunny_equations.php 77% from 13 tests

This is the main PHP file of "Funny Equations" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 158 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("funny-equations.php" instead of "oufunny_equations.php")
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected979 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP114374741
CSS1436238

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Constants0
▷ Global constants00.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
5 PNG files occupy 0.49MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png80.82KB45.84KB▼ 43.28%
images/b2.png77.34KB43.46KB▼ 43.80%
images/b1.png83.64KB49.34KB▼ 41.00%
images/screenshot-1.png80.82KB45.84KB▼ 43.28%
images/a1.png177.05KB97.05KB▼ 45.19%