84% mathilda

Code Review | Mathilda

WordPress plugin Mathilda scored84%from 54 tests.

About plugin

  • Plugin page: mathilda
  • Plugin version: 0.12
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.2
  • WordPress version: 6.3.1
  • First release: May 20, 2016
  • Latest release: Apr 15, 2023
  • Number of updates: 40
  • Update frequency: every 63.0 days
  • Top authors: unmus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,616 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.08MB] [CPU: ▼4.85ms] Passed 4 tests

This is a short check of server-side resources used by Mathilda
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1940.18 ▲0.47
Dashboard /wp-admin3.39 ▲0.0848.69 ▼2.25
Posts /wp-admin/edit.php3.43 ▲0.0848.57 ▼1.38
Add New Post /wp-admin/post-new.php5.96 ▲0.0894.15 ▼16.24
Media Library /wp-admin/upload.php3.31 ▲0.0839.46 ▲3.34
Tweets /wp-admin/tools.php?page=mathilda-tools-menu3.2735.09
Mathilda /wp-admin/options-general.php?page=mathilda-options3.2735.36

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 26 new files
Database: 5 new tables, 45 new options
New tables
wp_mathilda_hashtags
wp_mathilda_media
wp_mathilda_urls
wp_mathilda_tweets
wp_mathilda_mentions
New WordPress options
mathilda_plugin_version
mathilda_slug_is_changed
can_compress_scripts
mathilda_import_interval
mathilda_consumer_secret
mathilda_activated
mathilda_retweets
mathilda_import_subprocess_running
mathilda_import
mathilda_cron_lastrun
...

Browser metrics Passed 4 tests

Mathilda: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,893 ▲13213.32 ▼0.974.55 ▲2.7840.16 ▼6.28
Dashboard /wp-admin2,274 ▲744.89 ▼1.02111.00 ▼6.5944.24 ▼2.04
Posts /wp-admin/edit.php2,109 ▲302.05 ▲0.0338.69 ▼0.2339.15 ▲5.69
Add New Post /wp-admin/post-new.php1,554 ▲2023.38 ▼0.03725.50 ▲61.1454.68 ▼25.20
Media Library /wp-admin/upload.php1,412 ▲154.24 ▲0.03102.89 ▼0.5446.89 ▼2.02
Tweets /wp-admin/tools.php?page=mathilda-tools-menu9102.0126.7731.08
Mathilda /wp-admin/options-general.php?page=mathilda-options9482.0425.3429.26

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

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 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
Almost there! Just fix the following items
  • 1× 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/mathilda/mathilda_tools.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: social network, microblogging, twitter, tweets, blog

mathilda/mathilda.php 92% from 13 tests

The entry point to "Mathilda" version 0.12 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected3,368 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP221,1849523,325
CSS219243

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods777.78%
▷ Protected methods00.00%
▷ Private methods222.22%
Functions160
▷ Named functions160100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
mathilda_tweet.png0.45KB0.75KB0.00%