78% mobile-only-contact-footer

Code Review | Mobile Only Contact Footer

WordPress plugin Mobile Only Contact Footer scored78%from 54 tests.

About plugin

  • Plugin page: mobile-only-conta...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: May 8, 2015
  • Latest release: Jun 4, 2015
  • Number of updates: 9
  • Update frequency: every 3.0 days
  • Top authors: ExpoExe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,736 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.74ms] Passed 4 tests

A check of server-side resources used by Mobile Only Contact Footer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.30 ▲2.78
Dashboard /wp-admin3.37 ▲0.0249.77 ▼10.08
Posts /wp-admin/edit.php3.49 ▲0.1343.42 ▼1.82
Add New Post /wp-admin/post-new.php5.97 ▲0.0881.27 ▼17.69
Media Library /wp-admin/upload.php3.30 ▲0.0634.11 ▲2.63
Mobile Contact Footer Settings /wp-admin/options-general.php?page=mcf-setting-admin3.2429.08

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Mobile Only Contact Footer: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲7614.36 ▲0.011.80 ▲0.2344.53 ▲4.66
Dashboard /wp-admin2,214 ▲394.93 ▼0.6785.72 ▼10.6436.67 ▼3.04
Posts /wp-admin/edit.php2,106 ▲62.29 ▲0.3137.11 ▲0.3440.09 ▲6.60
Add New Post /wp-admin/post-new.php1,550 ▲1523.37 ▲5.26601.54 ▼10.9733.30 ▼40.32
Media Library /wp-admin/upload.php1,423 ▲234.29 ▲0.0893.79 ▼13.9141.69 ▼6.17
Mobile Contact Footer Settings /wp-admin/options-general.php?page=mcf-setting-admin1,1282.5845.9127.33

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=mcf-setting-admin
    • > Notice in wp-content/plugins/mobile-only-contact-footer/mobile_contact_footer_admin.php+286
    Trying to access array offset on value of type bool

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
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/mobile-only-contact-footer/mobile_contact_footer_admin.php:332
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/mobile-only-contact-footer/mobile_contact_footer_admin.php:332

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

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
8 plugin tags: phone, location, email, social, maps...

mobile-only-contact-footer/mobile_contact_footer.php 92% from 13 tests

The entry point to "Mobile Only Contact Footer" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("mobile-only-contact-footer.php" instead of "mobile_contact_footer.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
Everything looks great! No dangerous files found in this plugin5,392 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
CSS39121,832
Sass1326241,352
LESS1326331,343
SVG100565
PHP26145296
JavaScript1104

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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