89% wp-meta-repeater

Code Review | WP Metarepeater

WordPress plugin WP Metarepeater scored89%from 54 tests.

About plugin

  • Plugin page: wp-meta-repeater
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8.1
  • WordPress version: 6.3.1
  • First release: Sep 20, 2017
  • Latest release: Jan 8, 2018
  • Number of updates: 13
  • Update frequency: every 8.5 days
  • Top authors: anand000 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /611 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.09MB] [CPU: ▼0.26ms] Passed 4 tests

An overview of server-side resources used by WP Metarepeater
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0939.73 ▲3.26
Dashboard /wp-admin3.39 ▲0.0954.46 ▲1.94
Posts /wp-admin/edit.php3.50 ▲0.1544.82 ▼5.77
Add New Post /wp-admin/post-new.php5.99 ▲0.10105.53 ▲7.69
Media Library /wp-admin/upload.php3.31 ▲0.0832.40 ▼0.47

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WP Metarepeater
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7314.80 ▲0.371.71 ▼0.0444.00 ▲5.04
Dashboard /wp-admin2,222 ▲335.85 ▲0.92102.57 ▼24.1140.08 ▲0.55
Posts /wp-admin/edit.php2,111 ▲252.04 ▲0.0335.23 ▼0.7636.26 ▲1.99
Add New Post /wp-admin/post-new.php1,540 ▲2618.27 ▲0.70612.11 ▼49.7656.56 ▲1.27
Media Library /wp-admin/upload.php1,410 ▲194.24 ▲0.0598.48 ▼1.8342.97 ▼1.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 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 Passed 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
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 issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes: The official readme.txt is a good inspiration

wp-meta-repeater/wp-metarepeater.php 85% from 13 tests

The main PHP script in "WP Metarepeater" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-meta-repeater.php" instead of "wp-metarepeater.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin488 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP9111110378
CSS10672
JavaScript13038

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity7.83
▷ Minimum class complexity1.00
▷ Maximum class complexity40.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods25
▷ Static methods28.00%
▷ Public methods2184.00%
▷ Protected methods00.00%
▷ Private methods416.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin