84% wp-community-events

Code Review | WordPress Community Events

WordPress plugin WordPress Community Events scored 84% from 54 tests.

About plugin

  • Plugin page: wp-community-events
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Jun 7, 2017
  • Latest release: Jul 11, 2017
  • Number of updates: 9
  • Update frequency: every 3.9 days
  • Top authors: audrasjb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,361 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 gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼0.08ms] Passed 4 tests

An overview of server-side resources used by WordPress Community Events
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.77 ▲1.315,615.57 ▲5,576.60
Dashboard /wp-admin3.40 ▲0.1046.23 ▼2.09
Posts /wp-admin/edit.php3.45 ▲0.1048.56 ▼0.78
Add New Post /wp-admin/post-new.php6.00 ▲0.1299.80 ▲1.09
Media Library /wp-admin/upload.php3.32 ▲0.1037.51 ▲1.45
WP Community Events shortcode generator /wp-admin/options-general.php?page=wp-community-events3.2931.05

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WordPress Community Events
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.36 ▼1.041.54 ▼0.1540.62 ▼6.05
Dashboard /wp-admin2,231 ▲435.26 ▼0.64103.37 ▼10.6337.76 ▼6.90
Posts /wp-admin/edit.php2,098 ▲92.36 ▲0.3242.41 ▲0.9435.50 ▲0.55
Add New Post /wp-admin/post-new.php1,540 ▲723.22 ▼0.16642.23 ▲12.8335.50 ▼15.80
Media Library /wp-admin/upload.php1,417 ▲324.57 ▲0.4589.07 ▼8.8945.44 ▲5.09
WP Community Events shortcode generator /wp-admin/options-general.php?page=wp-community-events1,4522.6151.3027.44

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

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
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-community-events/admin/wpce-admin.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-community-events/public/wpce-shortcode.php:330
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-community-events/public/wpce-public.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: There are too many tags (16 tag instead of maximum 10)
The official readme.txt is a good inspiration

wp-community-events/wp-community-events.php Passed 13 tests

The primary PHP file in "WordPress Community Events" version 1.1 is used by WordPress to initiate all plugin functionality
72 characters long description:
Display WordPress official community WordCamps & Meetups on vector maps.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,984 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
JSON1001,207
PHP573104497
JavaScript764220
CSS42658
SVG2002

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions11
▷ Named functions11100.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
7 PNG files occupy 0.40MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png12.22KB4.63KB▼ 62.15%
assets/icon-256x256.png23.33KB10.19KB▼ 56.33%
assets/banner-1544x500.png59.77KB26.89KB▼ 55.01%
assets/banner-772x250.png28.33KB12.07KB▼ 57.40%
assets/screenshot-2.png94.29KB26.15KB▼ 72.27%