84% mmww

Code Review | MMWW

WordPress plugin MMWW scored84%from 54 tests.

About plugin

  • Plugin page: mmww
  • Plugin version: 1.0.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0
  • WordPress version: 6.3.1
  • First release: Dec 4, 2012
  • Latest release: Nov 4, 2022
  • Number of updates: 66
  • Update frequency: every 55.0 days
  • Top authors: OllieJones (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

100+ active /7,021 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼0.16MB] [CPU: ▼11.57ms] Passed 4 tests

Analyzing server-side resources used by MMWW
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.02 ▲1.98
Dashboard /wp-admin3.34 ▲0.0346.27 ▼7.33
Posts /wp-admin/edit.php3.39 ▲0.0349.04 ▼3.21
Add New Post /wp-admin/post-new.php5.17 ▼0.7268.89 ▼31.44
Media Library /wp-admin/upload.php3.26 ▲0.0335.65 ▼4.30
Media Metadata /wp-admin/options-general.php?page=mmww3.2432.01

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

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

Browser metrics Passed 4 tests

A check of browser resources used by MMWW
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.41 ▲0.211.89 ▼0.2844.30 ▲0.14
Dashboard /wp-admin2,202 ▲225.62 ▼0.0490.76 ▲2.4841.05 ▼4.21
Posts /wp-admin/edit.php2,104 ▲12.03 ▲0.0239.00 ▼2.4534.87 ▼0.86
Add New Post /wp-admin/post-new.php1,538 ▲1218.22 ▼5.01625.06 ▼28.0671.90 ▲14.66
Media Library /wp-admin/upload.php1,412 ▲124.19 ▲0.03102.92 ▲2.9045.85 ▼2.22
Media Metadata /wp-admin/options-general.php?page=mmww9472.0225.9133.89

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 238× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Media/Id3/Frame.php' (include_path='.:/usr/share/php') in wp-content/plugins/mmww/code/Zend/Media/Id3/Frame/Ufid.php on line 24
    • > PHP Warning
      require_once(Zend/Media/Id3/TextFrame.php): failed to open stream: No such file or directory in wp-content/plugins/mmww/code/Zend/Media/Id3/Frame/Tcon.php on line 24
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mmww/mmww.php on line 25
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Media/Id3/DateFrame.php' (include_path='.:/usr/share/php') in wp-content/plugins/mmww/code/Zend/Media/Id3/Frame/Tdrl.php on line 25
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Media/Id3/LinkFrame.php' (include_path='.:/usr/share/php') in wp-content/plugins/mmww/code/Zend/Media/Id3/Frame/Wors.php on line 24
    • > PHP Warning
      require_once(Zend/Media/Id3/Frame.php): failed to open stream: No such file or directory in wp-content/plugins/mmww/code/Zend/Media/Id3/Frame/Grid.php on line 24
    • > PHP Warning
      require_once(Zend/Media/Id3/TextFrame.php): failed to open stream: No such file or directory in wp-content/plugins/mmww/code/Zend/Media/Id3/Frame/Tsoa.php on line 25
    • > PHP Warning
      require_once(Zend/Media/Id3/Frame.php): failed to open stream: No such file or directory in wp-content/plugins/mmww/code/Zend/Media/Id3/Frame/Mcdi.php on line 24
    • > PHP Warning
      require_once(Zend/Media/Id3/TextFrame.php): failed to open stream: No such file or directory in wp-content/plugins/mmww/code/Zend/Media/Id3/Frame/Tpe3.php on line 24
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Media/Id3/Frame.php' (include_path='.:/usr/share/php') in wp-content/plugins/mmww/code/Zend/Media/Id3/Frame/Poss.php on line 24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: exif, metadata, id3, iptc, mp3...

mmww/mmww.php 92% from 13 tests

The main file in "MMWW" v. 1.0.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 393 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin7,676 lines of code in 139 files:
LanguageFilesBlank linesComment linesLines of code
PHP1371,4749,2526,963
PO File2236238713

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity6.58
▷ Minimum class complexity1.00
▷ Maximum class complexity80.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces0
Interfaces3
Traits0
Classes132
▷ Abstract classes75.30%
▷ Concrete classes12594.70%
▷ Final classes10281.60%
Methods622
▷ Static methods162.57%
▷ Public methods54186.98%
▷ Protected methods487.72%
▷ Private methods335.31%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants54
▷ Global constants611.11%
▷ Class constants4888.89%
▷ Public constants48100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin