84% big-middle-and-little-endians

Code Review | Big, Middle, and Little Endians

WordPress plugin Big, Middle, and Little Endians scored 84% from 54 tests.

About plugin

  • Plugin page: big-middle-and-li...
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1
  • WordPress version: 6.3.1
  • First release: Sep 16, 2012
  • Latest release: Mar 10, 2015
  • Number of updates: 10
  • Update frequency: every 90.5 days
  • Top authors: wonderboymusic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,144 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

This is a short check of server-side resources used by Big, Middle, and Little Endians
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.18 ▼3.96
Dashboard /wp-admin3.31 ▲0.0146.00 ▼1.21
Posts /wp-admin/edit.php3.36 ▲0.0144.49 ▼0.51
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.02 ▼20.75
Media Library /wp-admin/upload.php3.24 ▲0.0134.29 ▼2.01

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Big, Middle, and Little Endians
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.69 ▼0.741.56 ▼0.3339.92 ▼4.29
Dashboard /wp-admin2,203 ▲155.81 ▲0.9496.97 ▼18.6141.21 ▼5.78
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0534.16 ▼6.9835.43 ▼0.08
Add New Post /wp-admin/post-new.php1,514 ▼1417.75 ▼0.66651.66 ▼24.3053.14 ▼7.68
Media Library /wp-admin/upload.php1,391 ▲94.20 ▲0.0196.13 ▼2.0342.59 ▲1.06

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • 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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/big-middle-and-little-endians/big-middle-little-endian.php:59

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: rewrite, permalinks, date

big-middle-and-little-endians/big-middle-little-endian.php 92% from 13 tests

The main file in "Big, Middle, and Little Endians" v. 0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("big-middle-and-little-endians.php" instead of "big-middle-little-endian.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected187 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP149163187

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity35.00
▷ Minimum class complexity35.00
▷ Maximum class complexity35.00
Average method complexity5.86
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods685.71%
▷ Protected methods00.00%
▷ Private methods114.29%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin