90% ipanema-film-reviews

Code Review | Ipanema Film Reviews

WordPress plugin Ipanema Film Reviews scored 90% from 54 tests.

About plugin

  • Plugin page: ipanema-film-reviews
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.1
  • WordPress version: 6.3.1
  • First release: Sep 1, 2022
  • Latest release: Nov 1, 2022
  • Number of updates: 10
  • Update frequency: every 6.7 days
  • Top authors: segcgonz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 194 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.28MB] [CPU: ▲0.82ms] Passed 4 tests

A check of server-side resources used by Ipanema Film Reviews
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2654.55 ▲7.96
Dashboard /wp-admin3.60 ▲0.2960.26 ▲4.63
Posts /wp-admin/edit.php3.69 ▲0.3456.17 ▼7.33
Add New Post /wp-admin/post-new.php6.18 ▲0.29101.10 ▼1.99
Media Library /wp-admin/upload.php3.52 ▲0.2946.45 ▲12.17
Film Genre /wp-admin/edit-tags.php?taxonomy=film_reviews_film_type&post_type=film_reviews3.5144.80
Film Reviews /wp-admin/edit.php?post_type=film_reviews3.5550.87
Ipanema /wp-admin/options-general.php?page=ifr-settings3.4842.90
Add New /wp-admin/post-new.php?post_type=film_reviews3.6565.59

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
ifr_options
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ipanema Film Reviews
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,896 ▲10714.15 ▲1.0012.90 ▲10.9945.51 ▲1.39
Dashboard /wp-admin2,238 ▲325.86 ▼0.0494.44 ▼7.0639.75 ▼2.89
Posts /wp-admin/edit.php2,124 ▲322.03 ▲0.0336.43 ▼2.2732.58 ▼3.46
Add New Post /wp-admin/post-new.php1,549 ▲3223.29 ▲5.62595.52 ▼59.5658.18 ▲5.39
Media Library /wp-admin/upload.php1,426 ▲384.21 ▼0.0297.82 ▲2.6541.94 ▲0.39
Film Genre /wp-admin/edit-tags.php?taxonomy=film_reviews_film_type&post_type=film_reviews1,3002.1427.4231.45
Film Reviews /wp-admin/edit.php?post_type=film_reviews1,2171.9531.2135.72
Ipanema /wp-admin/options-general.php?page=ifr-settings1,0952.1344.1833.93
Add New /wp-admin/post-new.php?post_type=film_reviews2,8557.75181.1273.44

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 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
8 plugin tags: reviews, picture, popcorn, film, rate...

ipanema-film-reviews/ipanema-film-reviews.php 92% from 13 tests

"Ipanema Film Reviews" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 184 characters long)

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
Everything looks great! No dangerous files found in this plugin1,344 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP32451981,076
PO File1111130259
CSS1139

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions44
▷ Named functions44100.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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
media/star-icon-grey.png1.20KB1.23KB0.00%
media/star-icon.png1.48KB1.35KB▼ 9.08%
media/mailicon.png0.76KB0.56KB▼ 26.16%