84% meetup-winner

Code Review | Meetup Winner!

WordPress plugin Meetup Winner! scored84%from 54 tests.

About plugin

  • Plugin page: meetup-winner
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5.2
  • WordPress version: 6.3.1
  • First release: Jul 9, 2013
  • Latest release: Jul 10, 2013
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: dustyf (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,355 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

Analyzing server-side resources used by Meetup Winner!
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.75 ▼2.32
Dashboard /wp-admin3.31 ▲0.0145.25 ▼7.00
Posts /wp-admin/edit.php3.36 ▲0.0145.67 ▼0.02
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.66 ▲0.76
Media Library /wp-admin/upload.php3.24 ▲0.0133.84 ▲3.64
Meetup Winner! /wp-admin/options-general.php?page=meetup-winner3.2028.60

Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

Checking browser requirements for Meetup Winner!
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.23 ▼1.151.69 ▼0.1137.80 ▼4.86
Dashboard /wp-admin2,210 ▲224.84 ▼0.98111.11 ▲8.2441.09 ▲3.17
Posts /wp-admin/edit.php2,096 ▲72.04 ▲0.0239.16 ▲3.9636.19 ▲4.95
Add New Post /wp-admin/post-new.php1,536 ▲1923.25 ▲5.58644.37 ▲49.4949.60 ▼0.18
Media Library /wp-admin/upload.php1,392 ▲44.18 ▼0.0192.38 ▼3.2642.25 ▲1.11
Meetup Winner! /wp-admin/options-general.php?page=meetup-winner7862.1825.0127.05

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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/meetup-winner/meetup-winner.php:20

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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === meetup-winner === )
Please take inspiration from this readme.txt

meetup-winner/meetup-winner.php 92% from 13 tests

The principal PHP file in "Meetup Winner!" v. 0.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 185 characters long)

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
Success! There were no dangerous files found in this plugin91 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1182962
Markdown116021
CSS1008

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin